摘要
针对1-Wire总线器件DS18B20与单片机直接连接时单片机I/O端口驱动能力不足,存在限制传感器数量和传输距离的问题,本文设计了一种驱动电路。通过C51编程,可实现1-Wire总线数据的双向传输。在不增加单片机I/O端口资源占用的情况下,驱动电路可以接成主从方式使用,使1-Wire总线可驱动的传感器数量和传输距离有了极大提高。该电路已用于由DS18B20实现测温的粮仓测温系统中。
When connecting the 1-wire bus component DS18B20 with single chip microcomputer directly, the driving ability of I/O port of main controller is week, and numbers of sensors and the transmission distance are limited, Aiming at this problem, a driver circuit was designed. The bi-directional transmission of 1-wire bus can be achieved by programming with C51. Without additional resource occupation of single chip microcomputer, the driver circuit can be used by cascade mode. The number of sensors and the transmission distance can be enhanced greatly. It has been used in the temperature measuring system composed of DS18B20 for granary successful.
出处
《传感器世界》
2007年第8期36-39,共4页
Sensor World