A Digital Thermometer Using AT89C2051
Home» Microcontroller, Video» A Digital Thermometer Using AT89C2051

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 edg
e. 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.












