摘要:
A resistance to frequency circuit for measuring the ambient temperature on a thermostat. The temperature measuring circuit comprises a first Schmitt 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.