Field of the Invention
This invention relates generally to electronic sensing systems and more particularly to an arrangement for interconnecting a source of a time-varying signal to a digital utilization circuit.
Background of the Invention
It is frequently necessary to convert time-varying analog signals into digital signals having predetermined voltage levels supplied to logic circuits, microprocessors, and the like. Commonly, analog sensors are interconnected with digital circuits to provide control functions in response to external events detected by the sensors. As an example, digital control systems for vehicles typically respond to a variety of sensors to adaptively control the engine, the heating and ventilating system, and the electrical system.
Variable reluctance sensors are frequently used in automotive systems to detect the position and motion of moving parts, such as the rotating engine crankshaft. These variable reluctance sensors are connected to interface circuits which generate digital timing signals for engine control functions. In these arrangements, a DC current is passed through the sensor and a signal is developed across the sensor which has a DC component and a time-varying component. A comparator is typically used to compare the instantaneous magnitude of the sensor's output signal with a threshold level equivalent to its DC content, so that the output logic signal is at one level when the instantaneous magnitude of the sensor output signal is greater than its average value, and at a second and different logic signal level with the sensor's output signal has an instantaneous magnitude less than its average value. In addition, it is desirable to include in the sensor interface circuitry means for detecting faults in the sensor or in the interconnecting circuitry to insure reliable operation. A typical crankshaft position sensor circuit which provides a stable cyclical output signal from a variable reluctance transducer and additionally detects improper sensor operation is shown is U.S. Pat. No. 5,012,207.
Summary of the Invention
It is a first aspect of the present invention to convert the time-varying signal from a source, such as a variable reluctance sensor, into an output signal of controlled amplitude while accurately compensating for variations in the internal resistance of the source due to temperature changes or other causes.
It is another aspect of the invention to insure the integrity of a source of signals by continually measuring its internal resistance and generating a signal indicating a fault condition whenever the measured internal resistance departs from a predetermined acceptable range of values.
It is a related aspect of the present invention to enhance the reliability and accuracy of a sensor which provides digital control signals to a microprocessor or the like and to do so with a minimum number of low cost components.
The present invention employs an operational amplifier whose input is connected to a sensor or other signal source by means of a low-pass filter and which generates an offset signal having a magnitude indicative of the internal resistance of the sensor. A polarity-sensing comparison is employed to compare the sensor signal with the offset signal produced by the operational amplifier to generate the desired logic-level timing signal. A second comparison circuit continuously monitors the offset signal produced by the operational amplifier and generates a fault-indicating signal whenever the amplitude of the offset signal deviates from a predetermined range, thereby insuring that the sensor is properly connected and is operating normally.
Brief Description of the Drawings
FIG. 1 is schematic diagram of the preferred embodiment of the invention; and
FIG. 2 is a graph showing the relationship between the time-varying sensor output signal, the DC component of the sensor output signal, and the resulting digital output signal.
Description of the Preferred Embodiment
The embodiment shown in FIG. 1 interconnects a source of time-varying signals, indicated at 10, with a digital control system 20. The source 10 may take a variety of forms which may be represented by an equivalent circuit consisting of an idealized signal source 12 connected in series with an internal resistance 14.
A current source 15 is connected to induce a substantially constant current flow through the source 10, and an DC amplifier circuit 30 is used to derive an offset voltage V.sub.sc from the output from the source 10 appearing at terminal 18. The magnitude of the offset voltage V.sub.sc serves as a measurement of the internal resistance of the source 10. The DC amplifier 30 incorporates a low-pass filter circuit consisting of resistor 32 and capacitor 34 connected in series across the source 10. The junction of resistor 32 and capacitor 34 is connected to the positive input of an operational amplifier 35, whose output is directly connected to its negative input to provide unit gain. Because the amplifier is bandwidth-limited and responds only to very low frequencies, the offset signal V.sub.sc appearing at the amplifier output terminal 37 corresponds to the DC component of the voltage across source 10 and has a magnitude directly related to the magnitude of the internal resistance 14 of source 10.
A first comparator circuit 40 compares the output signal from the source 10 with the offset signal magnitude V.sub.sc produced by the operational amplifier 35. The comparator 40 produces a two-state output signal having an amplitude indicating the polarity of the difference between the instantaneous amplitude of the signal from source 10 and V.sub.sc, which represents the sensor signal's average value or DC content.
The comparator circuit 40 includes a polarity detection circuit consisting of a current limiting resistor 42 connected in series with the parallel combination of two diodes 44 and 46. Diodes 44 and 46 are poled in opposite directions so that current is allowed to flow in either direction through resistance 42. The amplitude-limited voltage across the two parallel diodes is then applied to the inputs of an operational amplifier 48 which applies a digital output voltage V.sub.out to terminal 49.
The upper sinusoidal wave seen in FIG. 2 represents the voltage across the source 10 which is composed of the sum of the DC component V.sub.sc and the time-varying component V.sub.s. The input to the comparator circuit 40, being connected between the terminal 37 and the source output terminal 18, receives an input signal equal to the time-varying component V.sub.s alone, since the DC component V.sub.sc at terminal 37 is subtracted from the source voltage at terminal 18. As a consequence, the input signal applied to the comparator 40 is largely immune to variations in the internal resistance 14 of the source 10, variations which might otherwise cause undesirable timing errors. The output signal V.sub.out, whose waveshape is seen at the bottom of FIG. 2, exhibits level transition when the output source signal crosses the offset level V.sub.sc established by the DC amplifier 35, and the timing of these transitions is independent of the internal resistance 14 which, in practice, may vary substantially with changes in ambient temperature or other causes.
In many applications, undetected sensor malfunctions can cause serious problems. Accordingly, the arrangement seen in FIG. 1 includes a second comparator circuit illustrated by the three-input operational amplifier 50 which monitors the internal resistance 14 of the connected source 10. One input to amplifier 50 is connected to terminal 37, the output of the DC amplifier 40, and accordingly receives a signal indicative of the value of the internal resistance 14 within the source 10. The second and third inputs 52 and 54 are respectively connected to sources of reference potentials V.sub.low and V.sub.high which establish the limits of an acceptable range of internal resistance values. Amplifier 50 delivers a logic signal V.sub.fault to its output terminal 56 which is at a first level during normal operation but which switches to a second level indicative of a trouble condition whenever the voltage V.sub.sc exceeds V.sub.high (which may indicate an open circuit condition caused by the disconnection of the sensor) or falls below V.sub.low (which may indicate that the sensor has been short-circuited).
The logic level signals at output terminals 49 and 56 may be applied directly to the inputs of a suitable digital control system indicated at 20, such as the data port pins of an integrated circuit microprocessor. It may be noted that the interface circuitry is constructed entirely of conventional, low-cost components, provides the necessary voltage levels required by the digital control system 20, and substantially improves the accuracy and integrity of the source device in interfaces to that digital system.
It is to be understood that numerous modifications may be made to the specific physical structures and methods of manufacture which have been described above without departing from the true spirit and scope of the invention.