单片机的数字温度计设计方案().pdf
《单片机的数字温度计设计方案().pdf》由会员分享,可在线阅读,更多相关《单片机的数字温度计设计方案().pdf(9页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、1/9 基于数字温度传感器的数字温度计1.设计目的与要求以 AT89C51单片机为核心,利用数字温度传感器DS18B20制作一个 LED显示的数字温度计:(1 利用数字温度传感器DS18B20 测量温度信号。(2 以 P3.5 口串口传送数据。(3 温度测量范围为 099,精确到 1。(4 2位共阳极 LED数码管上显示相应的温度值。2.工作原理温度传感器 DS18B20 美国 Dallas 公司生产的单线数字温度传感器,可以把温度模拟信号直接转换成串行数字信号供微机处理,是模/数转换器件,而且读DS18B20信息或写信息仅需单线接口,使用非常方便,新型的单线数字温度传感器体积小,精度高,使用
2、更灵活。DS18B20有三个引脚,GND接地;DQ为数字信号输入输出端;Udd 为外接电源输入端。DS18B20内结构主要由4 部分组成:64 位光刻 ROM、温度传感器、非挥发的温度报警触发器TH、TL和配置寄存器。3.参考电路 附图)本设计由DS18B20温度传感器芯片测量当前的温度并将转换后的结果送入单片机。然后通过A89S51单片机驱动两位共阳极7 段 LED数码管显示测量温度值。如本设计硬件电路图所示,本电路主要有DS18B20温度传感器芯片,两位共阳极数码管,AT89S51单片机及相应外围电路组成。其中DS18B20采用“一线制”与单片机相连。整体硬件接线图2/9 初始化状态显示文
3、档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1
4、P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1
5、Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F
6、1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4
7、Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8
8、A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T
9、4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F13/9 4.软件设计 流程图)用汇编语言完成对设计的软件编程,程序开始首先对温度传感器DS18B20进行复位,检测是否正常工作;接着读取温度数据,主机发出CCH指令与在线的 DS18B20联系,接着向 DS18B20发出温度 A/D 转换 44H指令,再发出温度寄存
10、器的温度值BEH指令,并反复调用复位,写入及读取数据子程序,之后再经过数据转换,由数码管显示出来,不断循环。软件编程主要包括以下一些程序段。主程序,读出转换后的温度值,写DS18B20的程序,读 DS18B20的程序,从DS18B20中读出两个字节的温度数据,将从DS18B20中读出的温度数据进行转换,将16进制的温度数据转换成压缩BCD码,DS18B20初始化程序,数码显示程序,延时子程序。5.仿真结果与结论仿真时运行电路则各器件正常运行,并显示出温度值,调节温度传感器度温度值,将显示出不同的温度值。温度显示整体电路文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T
11、4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5
12、N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9
13、U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M
14、4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5
15、G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2
16、M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E
17、4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F14/9 温度显示局部电路文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4
18、M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN
19、5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT
20、2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5
21、E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:
22、CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10
23、HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 Z
24、X5E4M4T4F15/9 附录:程序语言如下:。DS18B20测温程序,高位存入 35H(TEMPER_H RE00:MOV R2,#8 RE01:CLR C SETB DQ NOP NOP CLR DQ NOP NOP NOP SETB DQ MOV R3,#7 DJNZ R3,$MOV C,DQ MOV R3,#23 DJNZ R3,$RRC A 文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F
25、1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4Z1P10 HT2M9U8A1Z1 ZX5E4M4T4F1文档编码:CN5G5N4
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 单片机 数字 温度计 设计方案
限制150内