摘要:
DS18820 是美国 DALLAS 半导体公司生产的单总线数字温度传感器,它可
直接实现数字化输出和测试,具有控制功能强,高精度,传输距离远,抗干扰能力
强,微型化和微功耗等特点.本文介绍了单线数字温度传感器 DS18820 的结构,特
点和工作原理;在蓝桥杯 CT107D 开发平台了上利用 DS18820 测量正负范围内带
小数的实时温度并显示,测量系统的硬件结构及设计 C51 程序所注意事项。
Abstract:DS18820 is a single bus digital temperature sensor
produced by DALLAS Semiconductor Company in the United States. It can
directly realize digital output and test, with strong control function,
high precision, long transmission distance, strong anti-interference
ability, miniaturization and micro-power consumption. This paper
introduces the structure, characteristics and working principle of
single-wire digital temperature sensor DS18820. On the development
platform of Lanqiao CT107D, DS18820 is used to measure the real-time
temperature with decimal in the range of positive and negative and
display the hardware structure of the measurement system and the
matters for attention in the design of C51 program..
温度传感器是比较常用的一种传感器,早期多使用模拟式温度传感器,如热
敏电阻;随着科技进步,现在温度传感器多用数字式的,如 DS18B20。DS18B20
是常用的数字温度传感器,因其体积小、抗干扰能力强、精度高、接口简单等特
点,广泛应用于生产、生活多个领域,如粮仓、储罐、冷柜等测温场合。美国
DALLAS 公司推出的 DS18B20 采用单总线协议,即于单片机连接时仅仅需占用一个