This invention relates to an analog to digital convertor and more particularly to an improved analog to digital convertor in which zero drift and span drift are eliminated.
Background of the Invention
Conventional dual slope integrator analog to digital converters are generally preferred where low voltage input signals are to be measured. The dual slope technique provides excellent noise rejection and an accuracy that in general is independent of the clock pulse rate and integrating resistors and capacitors. However, such known circuits have a first order of sensitivity to zero drift and second order of sensitivity to span error with temperature. Further, it is generally difficult to obtain bipolar operation using conventional known techniques. In its practical form, the accuracy of an analog to digital convertor depends upon the following characteristics of the basic circuit:
1. Offset voltage of the pre-amplifier or buffer, integrator and crossover detector.
2. Offset voltage drift of the pre-amplifier or buffer, integrator and crossover detector.
3. Dynamics of the switches, capacitors, pre-amplifier, integrator and crossover detector.
4. Discontinuities at or near zero signal associated with achieving bipolar signal conversion.
5. Internal circuit noise.
6. Linearity of the amplifier, integrator and crossover detector.
Any analog to digital conversion circuit which would provide for improvement in the foregoing characteristics would be highly desirable.
In my U.S. Pat. No. 4,107,618, there is described an operational differential amplifier system wherein the signal gain of an input analog signal can be made independent of a reference voltage. The technique described in this patent can be used to advantage in the provision of a greatly improved analog to digital convertor wherein zero drift is essentially eliminated.
In U.S. Pat. Nos. 4,608,553 and 4,390,864, there is described an analog to digital convertor without zero or span drift employing a technique using fixed slope, variable amplitude analog to digital conversion.
Brief Description of the Present Invention
With the foregoing in mind, the present invention provides such an improved analog to digital convertor without zero drift and preferably span drift due to temperature is also eliminated. The present invention uses a variable amplitude fixed time period A to D convertor.
Briefly, in accord with the basic method of the present invention, an analog signal is converted to a numerical count directly proportional to the signal without zero drift or span drift, by utilizing a reference voltage in a circuit portion similar to that described in my aforementioned U.S. Pat. No. 4,107,618. A first conversion is affected in accordance with the following steps:
First, the differential operational amplifier means is used for adding the analog signal to the reference voltage for a fixed period of time. A series of clock pulses is generated and a counter is provided for the clock pulses. The counter is caused to start and stop at the beginning and end of the fixed time period, to define a first given number N.sub.0 of pulses. The reference voltage is then reversed in polarity until a time when the two signals cross over, defining a second time period N.sub.2, over which the counter counts the clock pulses. A microprocessor then divides N.sub.2 -N.sub.0 by N.sub.2 +N.sub.0 to obtain a signal proportional to the analog voltage and having no span drift.
In a second conversion, the polarity of the analog signal is reversed and the reference signal is first added to it and then subtracted to define third and fourth time periods, the first one being fixed, again with N.sub.0 pulses, and the second one defined by the time of return to the crossover and including N.sub.4 pulses. The microprocessor then divides N.sub.0 -N.sub.4 by N.sub.0 +N.sub.4 to obtain a signal proportional to the analog voltage and having no span drift.
The two foregoing signals may be added to provide a signal ##EQU1## which is a signal proportional to the analog voltage and having no span and no zero drift.
Substantial improvement is thus provided in the first four characteristics described, and some improvement is also shown for the last two characteristics.
It is an object of the present invention to integrate after the pre-amplifier so noise in the pre-amplifier is eliminated.
Another object is to eliminate zero and span drift.
Still another object is to provide a circuit in which everything is symmetrical and nothing is referred to ground so you have no ground noise and no reference voltage to the power supply.
Still another object is to provide a positive differential integrator which is not referenced to ground and so reduces noise.
Brief Description of the Drawings
A better understanding of this invention as well as further features and advantages thereof will be had by referring to the accompanying drawings in which:
FIG. 1 is a circuit diagram partly in block form of a positive integrator.
FIG. 2 is a graph indicating the integrator slope with terminology.
FIG. 3 is a circuit diagram partly in block form of a single-ended input positive integrator.
FIG. 4 is a series of voltage and timing diagrams from the circuit of FIG. 3.
FIG. 5 is a circuit diagram extending the circuit of FIG. 4 by adding the pre-amplifier.
FIG. 6 is a series of voltage and timing diagrams for the circuit of FIG. 5.
FIG. 7 is a circuit diagram partly in block form of the complete circuit employing the subject invention in differential form, and FIG. 7a is a circuit diagram of a bridge which may be employed to provide an analog input to the circuit of FIG. 7.
FIG. 8 is a series of voltage and timings for the circuit of FIG. 7.
Detailed Description of the Invention
The following nomenclature is used in connection with all figures:
TAN .theta.=Slope of integrator
e.sub.0 =Output of integrator
S.sub.x =Conversion period time in seconds
V.sub.x =Variable Amplitude of integrator
V.sub.B =Strain gauge bridge power supply voltage
RC=Integrator (Resistance--Capacitance) Constant
N.sub.x =Number of counts in period S.sub.x
f=Oscillator frequency
E.sub.x =Input voltage to the integrator
e.sub.i =Analog signal to be measured
V.sub.R =Reference Voltage
G.sub.x =Amplifier gain (Ratio of Resistors)
V.sub.t =(V.sub.o +V.sub.C)=Bias voltage and bias voltage drift, including the integrator, with respect to time and temperature
s=Unit time
k=Calibration factor
Referring now to FIGS. 1 and 2, the following derivation can be made:
N.sub.o =Fixed number of counts=S.sub.o f by definition ##EQU2## When the time interval (S.sub.X) is measured with a counter ##EQU3## Then by equality ##EQU4## E.sub.x may include various unknown quantities such as E.sub.I and V.sub.t. Also, E.sub.x may include known values such as V.sub.R. N.sub.x can be solved for one unknown quantity for each conversion period (phase) where E.sub.x is composed of different variables or for the unknown quantity (V.sub.x RCf).
Solving equation 2 for Nx ##EQU5## These phases are the phases shown in FIGS. 4, 6 and 8.
Referring now to FIGS. 3 and 4 ##EQU6## From the foregoing ##EQU7## Defining a situation where there is no span drift.
A second conversion cycle with small e.sub.i inverted defines periods 3 and 4. ##EQU8## from this it can be derived that ##EQU9## defining no span drift.
From the foregoing V.sub.t can be eliminated by adding equations 4 and 5 to derive ##EQU10## defining a situation involving no zero and no span drift.
A gain factor G.sub.x can be included in equation 6 as follows: ##EQU11## where e.sub.i G.sub.i and V.sub.R are summed at the integrator as in FIG. 3. ##EQU12## where e.sub.i G.sub.i and V.sub.R G.sub.R are summed at the preamplifier as in FIG. 5.
The voltage and timing diagrams of FIGS. 4 and 6, corresponding to the circuits of FIGS. 3 and 5, respectively, illustrate the four phases previously mentioned, where phases 1 and 3, involving the slopes ##EQU13## have a fixed time period, N.sub.0, and the second and fourth phases, involving the slopes ##EQU14## have time periods depending upon their slope to return to the zero level or crossover. The second diagram in FIGS. 4 and 6 illustrate N.sub.0, N.sub.2, N.sub.0 and N.sub.4 during the four respective phases, which counts are used in the foregoing equations.
The overall differential circuit is shown in FIG. 7 with its voltage and timing diagrams illustrated in FIG. 8. The switch S.sub.1 is used to switch e.sub.i in polarity across the positive inputs of the summing amplifiers, which includes operational amplifier 10 and 12. The analog signal e.sub.i may be derived from diagonally opposite points of a bridge circuit 26 on leads 28 and 30, as shown in FIG. 7a. The other diagonals of the bridge connect to power leads 32 and 34 which are connected to -V.sub.R and +V.sub.R, respectively. As an example, the bridge could constitute a strain gauge on a load cell so that changes of the loading of the cell will be reflected in changes in the analog input signal e.sub.i, and the resulting output is recorded in a ratio of volts per volt.
The switch S.sub.2 is used to switch the reference voltage polarity back and forth between the negative input terminals of operational amplifiers 10 and 12. The output of operational amplifiers 10 and 12 is then e.sub.i +V.sub.R and is connected through resistors R.sub.1 to the positive inputs of the positive differential integrator, employing operational amplifiers 14 and 16. Resistors R.sub.2 are connected from the input positive terminal to the output, and from the input to the negative terminal on both operational amplifiers 14 and 16. A resistor R.sub.3 is connected between the negative input terminals of amplifiers 14 and 16 and the outputs of amplifiers 14 and 16 are connected to the positive and negative input terminals of crossover detector 18. Connected in this manner, the positive differential integrator floats. Referring to the first line of FIG. 8, the zero or crossover is shown as a straight line. If there were changes, these lines would go up and down, so the crossover would still occur at the same time. The floating relationship illustrates the capability of the positive differential integrator to eliminate noise and short-term drift. In a practical application, the resistors R.sub.1 equal approximately 10 times the resistors R.sub.2, and the resistor R.sub.3 equals approximately 2 times the resistor R.sub.2. The output of the crossover detector is connected to the microprocessor 20 which is also connected over lines 22 and 24 to activate switches S.sub.1 and S.sub.2, respectively, at their appropriate times, in order to derive the counts N.sub.0, N.sub.2 and N.sub.4, as illustrated in the second and third lines of the diagram of FIG. 8.
It will be obvious to those skilled in the art that negative integrators such as shown in U.S. Pat. No. 4,390,864 may be used either as shown or in differential configuration. It will also be evident that the present invention has provided a greatly improved analog to digital convertor, wherein various problems associated with prior art, dual slope type, A-D convertors, have been eliminated, and other problems substantially reduced.