Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
RESISTANCE TO FREQUENCY A/D CIRCUIT WITH ACTIVE CALIBRATION
Document Type and Number:
WIPO Patent Application WO/1997/004293
Kind Code:
A1
Abstract:
A resistance to frequency circuit for measuring the ambient temperature on a thermostat. The temperature measuring circuit comprises a first schmidt trigger NAND gate, a rectifier, a capacitor of which one terminal is electrically connected to ground, a first resistor, a thermistor and possibly a second resistor. The capacitor is connected with the cathode electrically connected to ground, the anode is electrically connected to the first input of a NAND gate. The output of the NAND gate is electrically connected to the anode of the rectifier. The cathode of the rectifier is electrically connected to both the thermistor and the first resistor. The second terminal of the first resistor is electrically connected to the anode of the capacitor and the first input to the NAND gate. The thermistor is electrically connected to a tri-state buffer of the microprocessor. The circuit uses the open drain output ports of a microprocessor to provide the multiplexer function of the A/D. Two precision resistors are connected to the cathode of the rectifier with their second terminals electrically connected to a second and third tri-state buffer. By selectively switching through the tri-state buffers, and measuring the resulting frequencies, errors in the system can be calculated and thereby eliminated from the measured temperature of the system.

Inventors:
BIRD DOUGLAS D
Application Number:
PCT/US1996/012117
Publication Date:
February 06, 1997
Filing Date:
July 18, 1996
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
HONEYWELL INC (US)
International Classes:
G01K7/24; (IPC1-7): G01K7/24
Foreign References:
US4841458A1989-06-20
US5255975A1993-10-26
US4314665A1982-02-09
Other References:
PATENT ABSTRACTS OF JAPAN vol. 9, no. 223 (M - 411)<1946> 10 September 1985 (1985-09-10)
Download PDF:
Description:
RESISTANCE TO FREQUENCY A/D CIRCUIT

WITH ACTIVE CALIBRATION

BACKGROUND

The present invention relates broadly to resistance to frequency converters for temperature measurement. More specifically, the invention relates to a resistance to frequency converter for temperature measurement utilizing active calibration.

Electronics thermostats are extremely common in the current marketplace. The majority of those thermostats utilize a resistance to frequency conversion to calculate the temperature. For example, see Levine 4,314,665. Resistance to frequency converters are generally very accurate, can update the thermostat with the current ambient temperature quickly and require a low parts count.

In the majority of accurate resistance to frequency A/D converters utilize a comparator in the oscillator circuit to increase the accuracy ofthe overall system. To provide a compatator for the system requires an additional piece part at an added cost to the overall system. In today's highly competitive market additional piece parts can significantly reduce margins. An additional comparator can add up to thirty cents a device. In today's world that is a very significant expense.

This invention provides a low cost method of accurately measuring the temperature. It provides a means for active calibration which allows the use of low cost components without sacrificing temperature accuracy.

SUMMARY OF THE INVENTION This invention is a resistance to frequency circuit for measuring the ambient temperature on a thermostat. The temperature measuring circuit comprises a first schmidt trigger NAND gate, a rectifier, a capacitor of which one terminal is electrically connected to ground, a first resistor, a thermistor and possibly a second resistor. The capacitor is connected with the cathode electrically connected to ground, the anode is electrically connected to the first input of a NAND gate. The output ofthe NAND gate is electrically connected to the anode ofthe rectifier. The cathode ofthe rectifier is electrically connected to both the thermistor and thefirst resistor. The second terminal ofthe first resistor is electrically connected to the anode ofthe capacitor and the first input to the NAND gate. The thermistor is electrically connected to a tri-state buffer ofthe microprocessor.

A control signal is provided to the second input to the NAND gate. When the control signal is high, the output ofthe NAND gate goes high and charges the capacitor through the rectifier and the first resistor. When the capacitor sufficiently charges beyond the threshold ofthe schmidt-trigger NAND gate, the output ofthe NAND gate goes low and the capacitor drains through the thermistor until the capacitor discharges sufficiently to toggle the NAND gate high. In this manner, the temperature detection circuit oscillates with a frequency which is dependent upon the resistance ofthe thermistor. The output ofthe NAND gate is provided to a second schmidt-trigger device. Which is then provided to the microprocessor. Two precision resistors are connected to the cathode ofthe rectifier with their second terminals electrically connected to a second and third tri-state buffer. By selectively switching through the tri-state buffers, and measuring the resulting frequencies, errors in the system can be calculated and thereby eliminated from the measured temperature ofthe system. The circuit uses the open drain output ports of a microprocessor to provide the multiplexer function ofthe A/D. Many microprocessor provide open drain outputs which can be used for this function.

By using two channel calibration you increase the accuracy ofthe system allowing for the use of a NAND gate in place of a comparator. Further the NAND gate is essentially costs nothing because multiple NAND gates are placed on a chip and they are used elsewhere in the device. This is a cost savings of significant proportions, by eliminating the comparator.

BRIEF DESCRIPTION OF THE DRAWING Figure 1 is the schematic diagram of a first embodiment of preferred embodiment ofthe invention.

Figure 2 is the schematic diagram of a second embodiment of preferred embodiment ofthe invention.

DESCRIPTION OF THE PREFERRED EMBODIMENT The preferred embodiment of figure 1 comprises a microprocessor 20 with a plurality of tri-state inputs, an input node and an output node. Microprocessor 20, for the preferred embodiment, has a first tri-state input node A, a second tri-state

input node B, and a third tri-state input node C. For the preferred embodiment microprocessor 20 is a Sanyo LC5868H micro-controller. Control node D provides a enabling pulse to NAND gate 14. Input node E is provided with the output from invertor 16. The resistance to frequency A/D circuit comprises NAND gate 14, invertor 16, rectifier 18, thermistor 4, resistors 2, 6, 8 and 10, and capacitor 12. NAND gate 14 is a "schmidt trigger" NAND gate. Resistors 6 and 8 are the calibration resistors and are precision resistors.

Capacitor 12 has an anode and a cathode. The cathode is electrically connected to ground and the anode is electrically connected to the first input of NAND 14 and the first terminal of resistor 10. The input node D from micro¬ processor 20 is electrically connected to the second input of NAND gate 14. The output of NAND gate 14 is provided to invertor 16 and the anode of rectifier 18. The cathode of rectifier 18 is electrically connected to the second terminal of resistor 10, the first terminal of thermistor 4, the first terminal of resistor 6, and the first terminal of resistor 8. The second terminal of thermistor 4 is electrically connected to the first terminal of resistor 2. The second terminal of resistor 2 is electrically connected to input node A of microprocessor 20. The second terminal of resistor 6 is electrically connected to the input terminal B of microprocessor 20. The second terminal of resistor 8 is electrically connected to input node C of microprocessor 20. Input nodes A, B and C of microprocessor 20 are tri-state nodes and for the preferred embodiment are either set in a high-impedance mode or are set to ground. In this manner, microprocessor 20 can select which resistor, the combination of thermistor 4 and resistor 2, or resistor 6 or resistor 8 controls the oscillation frequency ofthe circuit. By setting the input node as a high-impedance effectively eliminates that resistor from the circuit.

For the temperature detection portion of operation, the circuit operates by microprocessor 20 setting nodes B and C to a high impedance and node A to ground. A high signal from control node D to NAND gate 14 sets the output of NAND gate 14 low which causes capacitor 12 to discharge through the series combination of resistor 10, thermistor 4 and resistor 2. When the capacitor has discharged below the low level thresh hold trigger point of NAND gate 14 the output of NAND gate 14 goes high

charging capacitor 12 until the voltage across capacitor 12 increases beyond the high level thresh hold trigger point of NAND gate 14. This will then set the output of NAND gate 14 low. In this manner the circuit will oscillate dependent upon the resistance of thermistor 4. A square wave at this frequency is provided to Input node E of microprocessor 20. Microprocessor 20 then calculates the frequency ofthe signal (Fl) and utilizes this frequency to determine the ambient temperature.

To calibrate the circuit the steps for determining the ambient temperature are followed however, node A of microprocessor 20 is set at a high impedance. Node B is then set at ground while node C stays at a high impedance. The frequency is provided to input node E. Microprocessor 20 then calculates this frequency (F2). The second phase ofthe calibration is the same as the first, however nodes A and B are now set at a high impedance and node C is set to ground. The microprocessor then determines the third frequency (F3). To calculate the actual ambient temperature ofthe device microprocessor 20 utilizes the formula: temperature = [(Fl - F2) / (F3 - F2)] * m + b

Note that m is the slope and b is the intercept resulting from a linear curve fit. The linear curve fit is achieved by varying the temperature ofthe device and measuring Fl , F2, and F3. The above formula is then used to calculate device temperature. The calculated device temperature is then compared to the actual device temperature. Ifthe calculated device temperature does not provide the accuracy required ofthe device then slope m and intercept b can be adjusted until the desired accuracy is achieved. The curve fit accuracy check is performed while varying all component tolerances to their extremes with a given slope and intercept. This verifies that the A/D will meet the device accuracy requirements.

By using two channel calibration the accuracy ofthe system is increased allowing the use of any schmidt trigger gate. These gates are generally free as a number of these gates are present on a chip. These gates are generally required for other functions and therefore the extra gate can be used for this purpose. Figure 2 is the schematic diagram of a second embodiment ofthe invention.

The circuit illustrated in figure 2 is similar to that of figure 1 with the exception that invertor 16 is eliminated and NAND gate 16 is replaced by schmidt trigger invertor 25.

The output of invertor 25 is provided to input node E directly. Further, the control signal is no longer supplied. The circuit will oscillate continuously and micro¬ processor 20 can sample the output of invertor 25. To stop the oscillation ofthe circuit nodes A, B, and C, can all be set at high impedance preventing the discharge of capacitor 12.