Control A Digital Thermometer Using AT89C2051 | Controller Circuit

Monday, April 25, 2011

Control A Digital Thermometer Using AT89C2051

The system presented in this application note implements a simple digital thermometer that includes a built-in LCD and RS-485 communicate ion Port. It is designed around Atmel’s AT89C2051 processor, a digital thermometer/thermostat from Dallas Semiconductor, a small 8 X 2 LED backlit LCD, and an RS485 line interface. The system, shown in Figure, can be used as the basis for developing custom solutions for networked and stand alone data collection and control equipment. It can be centrally powered due to its low current requirement and its small size allows it to be placed almost anywhere.


Temperature acquisition is handled using the digital thermometer/thermostat IC from Dallas Semiconductor. The digital contains all temperature measurement and signal conditioning circuitry on-chip and presents the processor with a 3-wire digital interface composed of a bi-directional data line DQ, a reset input \RST, and a clock input CLK. The temperature reading is provided in a 9 bit, two’s complement format. The measurement range spans from -55°C to +125°C in .5°C increments. Data transfers into and out of the DS1620 are initiated by driving \RST high. Once the DS1620’s reset is released, a series of clock pulses is emitted by the processor to actually transfer the data. For transmission to the DS1620, data must be valid during the rising edge of the clock pulse. Data bits received by the processor are output on the falling edge of the clock and remain valid through the rising edgJustify Fulle. Taking the clock high results in DQ assuming a high impedance state. The sequence can be immediately terminated by pulling \RST low which forces DQ into a high impedance state and concludes the transfer. Temperature data is transmitted over the 3-wire bus in lsb first format. A total of nine bits are transmitted where the most significant bit is the sign bit. If all nine bits are not of interest, the transfer can be terminated at any time by asserting \RST.

No comments:

Post a Comment