BACKGROUND OF THE INVENTION
Field of the Invention
This invention relates to a method and apparatus for digital data handling. More specifically, the present invention is directed to a method and apparatus for digital data handling to provide a digital temperature compensation.
SUMMARY OF THE INVENTION
An object of the present invention is provided an improved method and apparatus for digital data handling to provide a digital temperature compensation.
In accomplishing this and other objects there has been provided, in accordance with the present invention a method for digital temperature compensation of a digital analog converter system including the steps of sensing a temperature affecting the digital system, converting the sensed temperature into a digital temperature representation, supplying the digital temperature representation to a digital computer to be used in computing a digital output from the computer in accordance with a characterization equation which is a function of the digital temperature representation and supplying the digital output as a digital input to the digital system and a system utilizing the method uses a memory for storing the characterization equation, a digital computer means for computing an output in accordance with the characterization equation and a temperature compensation means for providing digital representation of a temperature affecting the digital system to the digital computer means to be used in computing the output.
BRIEF DESCRIPTION OF THE DRAWING
A better understanding of the present invention may be had when the following detailed description is read in connection with the accompanying drawings, in which:
FIG. 1 is a block diagram of a digital data handling apparatus embodying an example of the present invention and
FIG. 2 is a block diagram of an application of the digital data handling apparatus shown in FIG. 1 for use in a pressure transmitter.
DESCRIPTION OF THE PREFERRED EMBODIMENT
Referring to FIG. 1 in more detail, there is shown a digital data handling apparatus having a digital computer 1 conected to a non-volatile memory 2 and a computer input 3. The computer 1 is connected by a data bus 4 to a digital-to-analog (D/A) converter 6. A reference diode 8, e.g., a Zener diode, and a resistor 10 are connected in series across a source of voltage +V and a junction 11 therebetween is connected to the digital-to-analog converter 6 to supply a voltage reference thereto. The analog output of the digital-to-analog converter 6 is supplied through an amplifier 12 to an analog output terminal 14. The data bus 4 is also connected to a bus driver 16 which is used to apply a temperature representative digital word to the data bus 4. The digital word from the bus driver 16 is obtained from a tracking analog-to-digital (A/D) converter 18 utilizing a resistor ladder 20 connected between a source of voltage +V and a ground or common return. The output of the resistor ladder 20 is obtained from junctions between serially connected resistors forming the resistor ladder 20 and is selected by a switch assembly 22. The output of the switch assembly is connected to a first input of a signal comparator 24 to supply a first input signal thereto.
A second input signal for the comparator 24 is obtained from the junction between a resistor 26 and a temperature sensitive diode 28 in a temperature sensitive diode circuit 29. The resistor 26 and the diode 28 are connected in series between the source of voltage +V and ground. The output of the comparator 24 is connected directly to a first input of a first AND gate 30 and through a logical inverter 32 to a first input to a secnd AND gate 34. The second inputs of the first and second AND gates 30, 34 are connected to a source of clock signals 36 having a frequency which controls the updating of digital word supplied to the bus driver 16. The outputs of the first and second AND gates 30, 34 are connected to control the counting direction of an up/down counter 38. The output of the up/down counter 38 representative of a count stored in the counter 38 is connected to a data bus 40 for application as an input to a I/N decoder 42 and to the bus driver 16. The output of the I/N decoder 42 is applied to the switch assembly 22 to control its resistor ladder output selecting operation.
MODE OF OPERATION
During hot/cold testing of the digital data handling apparatus, a characterization equation, which describes the temperature performance of the digital data handling apparatus including the digital-to-analog converter 6 as a function of the digital representation of environmental temperature, i.e., Output=f(D,M) where D=digital data and M=f(temperature), is stored in the computer memory 2. The characterization equation may be developed by a testing computer using a conventional curve fitting technique using samples, e.g., four, of the output from the converter 6 for a known data word at corresponding digital representations of the test temperatures. Since the resulting characterization equation can then be used to handle the digital data input word from the computer input 3 to the computer 1 in light of the effect of temperature on the analog output of the converter 6, i.e., the output of the digital data handling apparatus, it is used to compensate the output of the digital computer 1 before the computer output is applied to the converter 6. Thus, the compensating temperature representative digital word from the digital compensation system, i.e., the A/D converter 18, is periodically sampled, e.g., once a minute, to update the temperature compensation data word, i.e., M, used in the characterization equation stored in the memory 2. The digital output from the computer 1 is accordingly modified to produce a compensated analog data output signal from the D/A converter 6. In oter words, the method of operation of the compensation system is based on converting the voltage drop across the temperature sensitive diode 28 to a digital word by the analog-to-digital converter 18. This digital word is applied to the data bus 4 for use by the digital computer 1 during the use of the stored characterization equation in handling the digital input data from the computer input 3 to modify the operation of the D/A converter 6. Thus, the analog output signal appearing at the output terminal 14 is compensated for the effect of environmental temperature on the digital handling apparatus which includes the operation of the digital-to-analog converter 6 and the reference diode 8.
The analog-to-digital converter 18 operates by using the switch assembly 22 to select a voltage from the resistor ladder 20 approximately equal to the output of the temperature sensitive diode circuit. The comparator 24 is used to sense the difference between the resistor ladder output and the temperature sensitive diode circuit 29 and to change its output signal polarity as a representation of the identity of the higher comparator input signal. The comparator output signal is used to operate one of the AND gates 30, 34 depending on its polarity which, in turn, operates the counting direction of the counter 38. Since the output of the counter 38 is decoded by the decoder 42 and is used to control the setting of the switching assembly 22, the comparator output signal is effective to produce a variation in the output of the resistor ladder 20 in a direction to match the output of the temperature sensitive diode circuit 29. Thus, the count output of the counter 38 is a digital word that represents the temperature induced variations on the output of the temperature sensitive diode circuit 29. The output of the counter is, accordingly, supplied over bus 16 as the digital word M to be used in the computation of the digital output from the digital computer 1.
In FIG. 2, there is shown a block diagram of a digital data handling apparatus embodying the method of the present invention for use in a pressure transmitter application. In this application, the data input to the digital computer 1 is obtained from a pressure sensor 50 having its analog output converted by an analog-to-digital converter 52 to a digital signal. The characterization equation stored in the memory 2 is then used by the digital computer 1 to modify the digital output representative of the detected pressure before the digital signal is converted by the digital-to-analog converter 6 to an analog signal in a suitable analog signal range as used in the process control industry, e.g., 4 to 20 ma.
Accordingly, it may be seen, that there has been provided, in accordance with the present invention an improved method and apparatus for digital data handling to provide a digital temperature compensation.