多点温度监测系统.pdf
《多点温度监测系统.pdf》由会员分享,可在线阅读,更多相关《多点温度监测系统.pdf(20页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、电子设计自动化实 训 报 告题目:多 点 温 度 监 测 系 统学 生 姓 名:宋 安 邦学 生 学 号:2104020685学院:工 学 院专业:电 子 信 息 工 程班级:2 0 11 级指 导 教 师:林 君副 教 授电子设计自动化实训1 一、实训目的和意义通过对多点温度检测系统的设计,可以更深入的了解MC5.2单片机的特点以及应用技巧,对单片机的应用可以温习其中的结构以及原理。而且 proteus 的强大功能也能通过此次试验反应出来,熟悉其界面的风格以及各种应用,又重新的认识了 proteus 在单片机方面的强大功能。二、实训设计内容要求1.实现 4 点温度实时采集,温度传感器采用DS
2、18B202.采用 LCD1602 显示 4 个采集点温度3.具有温度上下限报警功能:上限90C,下限 20C4.声音和光报警 2 种模式:光报警采用 4 只发光 LED;声音报警采用扬声器,报警音调采用2KHz 方波。三、系统设计1方案设计2硬件电路设计采集温度显示温度8052 系统处理是否高于90C或低于 20C是相应的报警(灯光或蜂鸣器)文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB
3、3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K
4、3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB
5、3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K
6、3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB
7、3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K
8、3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7电子设计自动化
9、实训2(1)工作原理:(a)通过四个温度采集器采集数字温度输入到单片机的p2.0p2.3口。(b)初始化 LCD1602 使 1602 能够接受数据,并分配其显示位置,此处采用两行两列式显示。(c)单片机读取信号。(d)单片机向 LCD1602 写信号,并延时。(e)判断是否有数据高于90 度或低于 20 度,如果有点亮相应的 led,并启动蜂鸣器。(2)硬件系统组成(a)80C52(b)晶振电路(c)复位电路(d)LED 灯电路(e)LCD1602 文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6
10、O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1
11、Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6
12、O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1
13、Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6
14、O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1
15、Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6
16、O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7电子设计自动化实训3(f)温度检测 ds18b203.软件设计(1)时间的设定:从此采用中断 T0 方式延时,而且是基本单位,无论蜂鸣器还是led,或是显示温度都用到此延时程序。延时程序如下:void tmpDelay(int num)while(num-);void Time0(void)interrupt 1 using 0 sound=sound;TH0=(65536-5000)/256;TL0=(65536-5000)%256;(2)信号的读入与写出:读字节程序如下 unsigned cha
17、r ReadOneChar1()/unsigned char i=0;unsigned char dat1=0;for(i=8;i0;i-)DQ1=0;/给脉冲信号dat1=1;DQ1=1;/给脉冲信号if(DQ1)dat1|=0 x80;tmpDelay(4);文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3
18、H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3
19、 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3
20、H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3
21、 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3
22、H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3
23、 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7电子设计自动化实训4 return(dat1);一共读四个字节,接下来是写字节程序如下void
24、WriteOneChar1(unsigned char dat1)/unsigned char i=0;for(i=8;i0;i-)DQ1=0;DQ1=dat1&0 x01;tmpDelay(5);DQ1=1;dat1=1;注意度字节的返回值。读取温度unsigned int Readtemp1()/unsigned char a=0;unsigned char b=0;unsigned int t=0;float tt=0;Init_DS18B201();WriteOneChar1(0 xCC);WriteOneChar1(0 x44);Init_DS18B201();WriteOneCha
25、r1(0 xCC);WriteOneChar1(0 xBE);a=ReadOneChar1();b=ReadOneChar1();/文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 多点 温度 监测 系统
限制150内