在自己做DS18b20多点测温系统时遇到了这个困难 就搜到了这个资料 分享给大家
51单片机直接可用程序。可以直接下载到单片机了就可以用了,程序管脚都已经标好,很好实用。
可以得到温度值,只是需要和硬件相连接,实现上下位机之间的通信。
单片机通过DS18b20采集温度,发送给PC机,PC采用VB编程,VB接收单片机串口输入画图!
以下程序,只考虑外接一个DS18B20,因为开发板上就挂了一个。只读取温度16位值,没有读取其他寄存器值。需要其他操作,可以在程序的基础上改改就行了。也很简单的。主要是底层的驱动,发数据和读数据,复位
51芯片定时器方式+LED显示 读取DS18B20温度
使用DS18B20写的温度控制程序,实际使用MOS管等做加热的元件,可以恒温控制在50或40度,温度控制精度很好,后面使用串口打印出来温度数据基本上零误差,
2010年工信部全国电子专业人才设计与技能大赛单片机组使用的单片机开发板上适用的DS18B20源程序,详解
ds18b20温度传感器测温模块驱动,可直接加入工程使用,输出温度数值。使用verilog语言,用于fpga代码开发
ds18b20程序-51,里面有详细的注释,可以直接用