This invention relates to a function generator for producing an analog output signal corresponding to a predetermined non-linear function of an analog input signal. More particularly it relates to a hybrid analog function generator wherein an analog input signal is converted to a proportional digital signal addressing a programable read only memory programmed to generate a digital output signal, corresponding to the predetermined function of the input signal, which is converted to a proportional analog output signal.
In accordance with this invention an analog output signal can be generated which varies in predetermined functional relationship to the quotient of one analog input signal divided by another analog input signal.
Further in accordance with this invention an analog output signal can be generated which varies in predetermined functional relationship to the product of one analog input signal multiplied by another analog input signal.
Further in accordance with this invention an analog output signal can be generated which varies in predetermined functional relationship to the quotient of one analog input signal divided by another analog input signal multiplied by still another analog input signal.
Further in accordance with this invention a selected time delay can be introduced between the input signal to the function generator and output signal therefrom.
Further in accordance with this invention a selected digital signal can be added to or subtracted from the digital signal addressing the programable read only memory.
It is a further object of this invention to provide an analog function generator wherein the functional relationship between the input and output signals can be varied without a change in hardware to thereby adapt a generator to a wide variety of applications such as, but not limited to, square root extraction as required in generating an output signal varying in straight line relationship to rate of fluid flow; extraction of the non-linear function between the e.m.f. generated by a thermocouple and temperature, or the non-linear function between the resistance of a resistant thermometer and temperature; extraction of the non-linear function between temperature and the rate of a chemical reaction.
These and other objectives of the invention will be apparent as the description proceeds in connection with the drawing, in which:
In the Drawing
The drawing is a block diagram of a hybrid analog function generator embodying the principles of this invention.
Detailed Description
Illustrated in the drawing is an integrating analog to digital converter, generally indicated at 1, comprised of an analog section 2 and a counter section 4, which is supplied with pulses from a timer 6 at a constant but adustable frequency by means of a suitable circuit such as schematically indicated at 8.
An analog to digital converter, such as shown at 1, may be made up, for example, of a National Semiconductor Corp. LF13300 integrating A/D analog building block and a National Semiconductor Corp. MM5863 12-bit binary A/D building block or comparable components. The timer 6 may be a National Semiconductor Corp. LM555 timer which may be set to operate at a selected frequency, such as 250 KHZ, but adjustable as heretofore stated by a suitable adjusting means such as schematically illustrated at 8.
The digital output reading of the counter 4 is:
Where:
n.sub.2 =counter output reading
n.sub.1 =number of timer pulses
V.sub.I =analog input signal to the A/D converter
V.sub.I '=analog input signal to the A/D converter
From equation (1) it is apparent that if V.sub.I ' is constant as by means of a suitable reference, n.sub.2 is directly proportional to V.sub.I. It is equally apparent that n.sub.2 will vary inversely with V.sub.I '. Thus the A/D converter 1 provides a means of obtaining a digital readout directly proportional to and input signal (V.sub.I) or a digital readout proportional to the quotient of a first input signal (V.sub.I) divided by a second input signal (V.sub.I ').
From equation (1) it is also apparent that the time delay between input signals V.sub.I and V.sub.I ' and the corresponding digital output signal from the A/D converter 1 can be varied by the adjusting means 8 as required to meet the exigencies of a particular application.
The digital readout of the A/D converter 1 inputs to and forms the address for a programable read only memory (PROM) 10, which may be made up of one or more Intel 2716 VV eraseable proms, programmed to produce a digital output signal having a predetermined or desired functional relationship to the address. As obvious, in some applications, a read only memory (ROM) would be satisfactory, however, a PROM permits changing the functional relationship, if required, while providing a secure function once programmed.
To facilitate zero adjustment of the function generator, an adder, such as shown at 12, can be interposed between the A/D converter 1 and PROM 10 whereby a number may be added to or subtracted from the address generated in the A/D converter 1 by means of manually operated single pole switches such as schematically shown at 14.
The digital output signal from the PROM 10 inputs to a D/A converter 16 which may be, for example, a National Semiconductor Corp. series DAC1285 converter generating an output signal (V.sub.O). Also inputting to the D/A converter 16 is a signal V.sub.I " so that (V.sub.O) varies in direct proportion thereto. Accordingly, if V.sub.I " is maintained constant, as by means of a constant reference (not shown), V.sub.O varies in direct proportion with the digital input signal to the D/A converter 16; whereas if V.sub.I " is a variable input signal, V.sub.O will be proportional to the digital output signal from the PROM 10 multiplied by V.sub.I ".