资料介绍
Abstract: This application introduces the user to simple 1-Wire software for interfacing a microcontroller to the DS18B20, DS18S20, and DS1822 1-Wire temperature sensors. For example purposes in the article, the DS5000 (8051 compatible) microcontroller is used. Software examples are given that illustrate the implementation of delay, reset, read bit, write bit, read byte, write byte, ROM search, CRC, read temperature, and read scratch pad routines.
Interfacing the DS18X20/DS1822 1-Wire Temperature
Sensor in a Microcontroller Environment
Mar 08, 2002
Abstract: This application introduces the user to simple 1-Wire software for interfacing a microcontroller to the DS18B20, DS18S20,
and DS1822 1-Wire temperature sensors. For example purposes in the article, the DS5000 (8051 compatible) microcontroller is
used. Software examples are given that illustrate the implementation of delay, reset, read bit, write bit, read byte, write byte, ROM
search, CRC, read temperature, and read scratch pad routines.
Introduction
There are several methods available for interfacing 1-Wire devices such as theDS18B20,DS18S20, orDS1822to a
microcontroller. These methods range from simple software solutions, to using aSerial Interfacechip such as the DS2480B,