Offset compensating method and circuit for MOS differential stages

Abstract: To compensate the offset of a differential stage, the stage (2) has at least one programmable, floating gate transistor (10) with a programmable threshold, which is initially set to a threshold level other than the required threshold value, so that the differential stage is initially unbalanced; a balance input voltage is applied to the inputs (12, 13) of the differential stage; a programming voltage is applied to the programmable transistor (10) to modify the set threshold until the differential stage switches; and the programming voltage is cut off immediately, so that the charge required for the differential stage to be balanced with a balance input voltage is memorized in the programmable transistor (10).

Description: The present invention relates to an offset compensating method and circuit for MOS differential stages, according to the preamble of claim 1. As is known, voltage offset is one of the most common and most annoying drawbacks of differential stages and differential-stage-based circuits (such as operational amplifiers, to which reference is made herein purely by way of example). A differential amplifier adjustable to counteract mismatch and having the feature recited in the preamble of claim 1 is disclosed in WO-A-93 17 493. This known differential amplifier is based on detecting the offset voltage of floating gate transistors forming the differential amplifier while the circuit is in a first circuit configuration; then programming the floating gate transistors while the circuit is in a second circuit configuration; then remeasuring offset voltage to detect the new value; and repeating iteratively the procedure until the offset voltage is sufficiently small. US-A-5,430,670 discloses a differential analog memory cell having a similar discrete type approach. US-A-5,218,568 discloses an EEPROM including a tunneling diode integrated with a memory cell. Of the various solutions proposed and currently implemented, none is entirely satisfactory in terms of performance and/or simplicity. It is an object of the present invention to provide a method and circuit capable of almost fully compensating offset in a simple manner, with no need for complex compensating structures. According to the present invention, there are provided an offset compensating method and circuit for MOS differential stages, as claimed respectively in claims 1 and 4. The present invention is based on the possibility of using programmable transistors (by which are meant floating gate transistors, such as nonvolatile, i.e. EEPROM or flash, memory cells) and special transistor programming circuits in differential stages for eliminating offset. In practice, the differential stage features programmable transistors, one of which is set to a different (higher or lower) threshold level as compared with the desired threshold value, so that the differential stage is unbalanced even in the presence of a balanced input voltage. A programming voltage is then applied to extract or inject charges and so reduce or increase the set threshold of the programmable transistor until the differential stage switches, thus indicating it is balanced, at which point the programming voltage is cut off immediately. This therefore provides for setting the correct threshold level to switch the differential stage at the required voltage value and so eliminate any offset in the stage. A preferred, non-limiting embodiment of the present invention will be described by way of example with reference to the accompanying drawings, in which: Figure 1 shows an operational amplifier offset-compensated according to the present invention; Figure 2 shows a cross section of a semiconductor material wafer implementing a detail of the Figure 1 circuit; Figure 3 shows graphs of a number of electric signals at appropriate points on the Figure 1 amplifier. Number 1 in Figure 1 indicates an operational amplifier comprising, in known manner, a differential input stage 2 and an output stage 3. In addition, amplifier 1 also comprises an offset compensating section 4 implementing the principle of the present invention. More specifically, differential input stage 2 comprises a pair of transistors 10, 11 in the form of programmable floating gate transistors as shown in the Figure 2 section. Transistors 10 and 11 are N-channel types with the control gate terminals defining differential inputs 12, 13 of amplifier 1, the source terminals connected to each other and to the drain terminal of a biasing transistor 14, and the drain terminals connected to a current mirror circuit 15. Current mirror circuit 15 comprises a first and second P-channel MOS transistor 17, 18 with the source terminals connected to each other and to an upper supply line 20 at V DD , and the gate terminals connected to each other; transistor 17 is diode-connected, with the drain terminal connected to the drain terminal of floating gate transistor 10; and transistor 18 has the drain terminal connected to the drain terminal of floating gate transistor 11 at the output node 21 of the differential stage. Transistor 14 is an N-channel type with the source terminal connected to a negative supply line 23 at V SS (typically equal to -V DD ) and the gate terminal connected to a biasing node 24, which is also connected to the source terminal of an N-channel transistor 25 and the drain terminal of an N-channel transistor 26. Transistor 25 is a resistive type with the drain terminal connected to positive supply line 20 and the gate terminal grounded; and transistor 26 is diode-connected, with the source terminal connected to negative supply line 23. Output stage 3 comprises a PMOS output transistor 29, and an NMOS transistor 31 defining an active load. More specifically, transistor 29 has the gate terminal connected to node 21, the source terminal connected to positive supply line 20, and the drain terminal forming the output terminal 30 of amplifier 1; and transistor 31 has the drain terminal connected to output terminal 30, the gate terminal connected to biasing node 24, and the source terminal connected to negative supply line 23. Output terminal 30 is also connected to node 21 via a frequency compensating network 33 comprising a P-channel resistive transistor 34, and a capacitor 35. More specifically, compensating transistor 34 has the gate terminal connected to biasing node 24, a first (drain) terminal connected to node 21, and a second (source) terminal connected to output terminal 30 of amplifier 1 via compensating capacitor 35. Offset compensating stage 4 comprises a programming terminal 40; a pair of MOS tunnel diodes 41, 42, each connected to the floating gate of a respective transistor 10, 11; a coupling capacitor 43; a program disabling transistor 44; and an inverting circuit 45. More specifically, diode 41 has the cathode connected to the floating gate of transistor 10 (as explained in more detail below with reference to Figure 2), and the anode connected to a node 48 in turn connected to programming terminal 40 via capacitor 43 (which is so sized as not to be noticeably discharged by the tunnel current during programming, but to be rapidly discharged by the channel current of transistor 44 when this is turned on, as explained in more detail later on). Diode 42 has the cathode connected to the floating gate of transistor 10, and the anode grounded; NMOS program disabling transistor 44 has the drain terminal connected to node 48, the source terminal grounded, and the gate terminal connected to output 49 of inverting circuit 45; and inverting circuit 45 comprises a pair of respectively PMOS and NMOS transistors 50, 51 with the gate terminals connected to each other and to output terminal 30 of amplifier 1, the drain terminals connected to each other and forming output 49, and the source terminals connected respectively to positive supply line 20 and negative supply line 23. One example of the implementation and connection of tunnel diodes 41, 42 to respective input transistors 10, 11 is shown in Figure 2, which shows a cross section of a semiconductor material wafer 60. More specifically, 61 in Figure 2 indicates a P-type substrate of monocrystalline silicon defining a surface 62 on which are formed thick field oxide regions 63 laterally delimiting an active region 64 for programmable transistor 10 (or 11), and an active region 65 for tunnel diode 41 (42). Substrate 61 houses an N + type source region 67, an N + type drain region 68 (both located in active area 64 and separated by a portion of substrate 61 forming the channel 72 of transistor 10, 11), and an N + type anode region 69 (in active area 65) shown connected to capacitor 43. A polysilicon layer (polyl) 70 extends from active area 64 to active area 65; layer 70 of Figure 2 shows two portions 70a, 70b respectively over channel 72 and over anode region 69 and part of field oxide region 63. Portions 70a, 70b are connected to each other by a portion (not shown, and represented schematically by electrical connection 70c) in which the standard programming injector (not shown) of the programmable transistor is also formed. Portions 70a, 70b are separated electrically from surface 62 by a gate oxide layer 71 and a tunnel oxide region 73. More specifically, tunnel oxide region 73 is very thin (e.g. 80 Å), whereas gate oxide layer 71 is thicker (about 200 Å), covers channel 72, and merges with field oxide region 63. A second layer of polycrystalline silicon (poly2) 74 extends over polyl layer 70, and is separated from it by a dielectric layer 75 which merges locally with gate oxide layer 71 and field oxide region 63; and a protective oxide layer 76 extends over poly2 layer 74. As shown in Figure 2, transistors 10, 11 are formed in the same way as standard EEPROM memory cells, except that polyl layer 70, which is fully insulated, extends up to active area 65 to form tunnel diode 41, 42. Operation of the Figure 1 circuit will now be described with reference also to Figure 3, which plots programming voltage V PP (voltage V 48 ) measured at node 48; voltages V FG10 and V FG11 measured at the floating gate regions of input transistors 10, 11; current I D flowing through diode 41; output voltage V O ; and output voltage V 49 of inverter 45. Initially, transistor 10 is programmed to the high-threshold state (excess charges in the floating gate) so that it is off regardless of biasing of input terminal 12; transistor 11 is programmed to a predetermined nominal threshold value which remains unchanged; and initial programming may be performed as customary for nonvolatile memory cells, by appropriately biasing the drain, source and gate terminals of transistors 10, 11. During calibration, amplifier 1 is supplied normally, and inputs 12, 13 are grounded as shown by the dotted line in Figure 1. Since transistor 10 is off, output terminal 30 is at high potential (nearly V DD ); node 49 is at low potential (nearly V SS = -V DD ); program disabling transistor 44 is off; the programming node is initially low (0 V); and diode 41 is disabled. To calibrate the differential stage, a positive voltage pulse is applied to terminal 40. Voltage V PP is preferably increased linearly as shown in Figure 3; node 48 is brought to high by capacitive coupling via capacitor 43 (see voltage V 48 in Figure 3). When voltage V PP reaches such a value as to cause across diode 41 a direct voltage drop equal to its threshold voltage (here about 10 V), diode 41 starts conducting and generates a current to the floating gate region of transistor 10, i.e. extracts electrons from the floating gate by Fowler-Nordheim tunneling (current I D ). Thus, the floating gate voltage V FG10 of transistor 10 increases and the threshold of transistor 10 decreases. The threshold voltage of transistor 10 continues decreasing until input stage 2 of amplifier 1 reaches an electrically balanced condition. If differential input stage 2 were ideal, such a balance condition would occur when the charge stored in the floating gate of transistor 10 equals the charge stored in the floating gate of transistor 11. In general, however, stage 2 is not ideal, and the balance condition occurs at different charge values. At any rate, upon the differential stage reaching a balance condition, output voltage V O switches to low (instant t S in Figure 3) and voltage V 49 at output node 49 of inverter 45 switches to high; program disabling transistor 44 is therefore turned on and grounds node 48, thus discharging capacitor 43 and sharply arresting tunnel injection via diode 41. Thus, the charge stored in the floating gate of input transistor 10 is frozen at the value by which the output was switched, i.e. in a situation in which, with equal inputs, the output of amplifier 1 is practically zero. As shown in Figure 3, this condition corresponds to equal floating gate voltages of transistors 10, 11. In the circuit shown, diode 42 provides for ensuring maximum balance of differential stage 2. The method and circuit described present the following advantages. In particular, they provide for highly simple, accurate offset compensation (up to about 1 mV) by requiring only a small number of easy-to-integrate components, and by virtue of compensation substantially depending on the gain of the feedback branch, which may be made very high. Clearly, changes may be made to the method and circuit as described and illustrated herein without, however, departing from the scope of the present invention as defined by the appended claims. In particular, the method described may be implemented using a circuit other than the one shown, using different nonvolatile memory cells (EEPROM, flash and EPROM), even located differently in the differential scheme (e.g. in the current mirror), or using different e.g. hot-electron, programming methods; all of which variations have in common the storage, in the floating gate of one or more nonvolatile memory cells, of the charge required to eliminate the offset of the circuit. Moreover, the correct charge condition to switch the differential stage may be achieved conversely to the manner described, and more specifically by commencing from an erasing situation in excess of the normal one set on the other transistor of the differential stage, and by injecting electrons until the threshold corresponding to the desired switching situation is reached. In which case, programming will comprise writing programmable transistor 10 instead of erasing it as in the example described, so that the term programming used herein comprises both methods of modifying the threshold of transistor 10. Finally, the same may also be achieved for offset compensating the differential stages of comparators required to switch at predetermined input voltage values, by setting the required switching value at the input of transistor 11.

Claims: A method of compensating the offset of MOS differential stages comprising an electrically programmable MOS transistor; the method comprising the steps of: applying balance input voltages to said differential stage; applying a programming voltage to said MOS transistor to modify its threshold value; characterized by the steps of: before applying said balance input voltages, intentionally programming said MOS transistor to a threshold value other than the required threshold value; detecting when said differential stage switches while applying said programming voltage; and removing said programming voltage upon detecting the switching of said differential stage. A method as claimed in Claim 1, characterized in that said step of programming said MOS transistor comprises the step of programming said MOS transistor to a threshold value higher than said required threshold value; and said step of applying a programming voltage comprises the step of applying an erase voltage. A method as claimed in Claim 1, characterized in that said step of programming said MOS transistor comprises the step of programming said MOS transistor to a threshold value lower than said required threshold value; and said step of applying a programming voltage comprises the step of applying a write voltage. A circuit for compensating the offset of a MOS differential stage (2) comprising a MOS transistor (10) of the electrically programmable type; the circuit comprising an offset programming stage (4) for modifying the threshold of said MOS transistor and including programming means (40, 41, 43); first source means generating a balance input voltage and connected to input terminals (12, 13) of said differential stage (2); second source means (40, 41, 43) generating a threshold-modifying programming voltage (VPP) and connected to said MOS transistor (10) ; and detecting means (45) monitoring the output of said differential stage (2); characterized in that said offset programming stage (4) further comprises disabling means (44) having a control input connected to said detecting means and an output connected to said second source means (40, 41, 43) and disabling said second source means upon said detecting means detects switching of said differential stage (2). A circuit as claimed in Claim 4, characterized in that said MOS transistor (10) is an input transistor of said differential stage (2). A circuit as claimed in claim 4 or 5, characterized in that said MOS transistor (10) comprises a floating gate region (70); and in that said second source means (40, 41, 43) comprise a coupling capacitor (43) and a tunnel diode (41) series ,connected to each other between a programming input terminal (40) and said floating gate region. A circuit as claimed in Claim 6, characterized in that said tunnel diode (41) comprises a first region (69) formed in a substrate (61) of semiconductor material, and a second region (70b) facing and electrically separated from said substrate; said second region (70b) being connected to said floating gate region (70a). A circuit as claimed in Claim 7, characterized in that said floating gate region (70a) and said second region (70b) of said tunnel diode (41, 42) are formed in contiguous portions of a polycrystalline silicon layer (70). A circuit as claimed in any one of Claims 4-8, characterized in that said switching detecting means comprise an inverting stage (45) connected to the output terminal (21) of said differential stage. A circuit as claimed in any one of Claims 6-9, characterized in that said disabling means comprise a disabling MOS transistor (44) with a first terminal connected to an intermediate point (48) between said capacitor (43) and said tunnel diode (41), a second terminal connected to a reference potential line, and a control terminal connected to said switching detecting means (45). A circuit as claimed in any one of Claims 6-11, characterized in that said differential stage (2) comprises a second electrically programmable input MOS transistor (11).

Inventors: LANZONI MASSIMO, RICCO BRUNO, LANZONI, MASSIMO, RICCO, BRUNO
Applicants: ST MICROELECTRONICS SRL, STMICROELECTRONICS S.R.L.
Application year: 1995
Main classification: H03F1
IPC codes: H03F3, H03F1