《多点温度监测系统.pdf》由会员分享,可在线阅读,更多相关《多点温度监测系统.pdf(20页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
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
26、W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7
27、X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9
28、W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7
29、X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9
30、W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7
31、X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7电子设计自动化实训5 t=b;t900)|(t1;x-)for(y=z;y1;y-);void write_com(uchar com)/写命令函数 lcdrs=0;P0=com;delay(5);lcden=1;文档编码:CB
32、3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K
33、3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB
34、3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K
35、3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB
36、3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K
37、3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB
38、3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7电子设计自动化实训6 delay(5);lcden=0;void write_date(uchar date)/写数据函数 lcdrs=1;P0=date;delay(5);lcden=1;delay(5);lcden=0;void init_lcd()/初始化函数 lcden=0;/默认开始状态为关使能端,见时序图lcdrw=0;/选择状态为写write_com(0 x
39、0f);write_com(0 x38);/显示模式设置,默认为0 x38,不用变。write_com(0 x01);/显示清屏,将上次的内容清除write_com(0 x0c);/显示功能设置 0 x0f 为开显示,显示光标,光标闪烁;0 x0c为开显示,不显光标,光标不闪write_com(0 x06);/设置光标状态默认0 x06,为读一个字符光标加1.write_com(0 x80);/设置初始化数据指针for(i=0;i16;i+)/显示 The temperature write_date(t0i);delay(0);write_com(0 x80+0 x40);for(i=0;i
40、16;i+)/显示 is C write_date(t1i);delay(0);文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9
41、H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7
42、文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9
43、H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7
44、文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9
45、H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7
46、文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7电子设计自动化实训7 (4)程序流程图如下图所示:四、调试方法及步骤1.用软件调试工具先调试设计好的程序,方法是打开调试工具后新建项目,设计开发环境,选择单片机种类,建立.c,然后加载到环境中,编写程序,生成HEX,把他放虚拟单片机中,调试。2 出现错误,就要修改错误,编译全部通
47、过后再接外围硬件电路,接上仿真头,硬件电路供电后再开启仿真头,然后正确设置好仿真器,最后全速运行,查看硬件电路显示结果是否与原设计思想一致。3.显示结果正确后结束仿真,先停止运行程序,再关掉仿真头开关,最后断电,撬开仿真器。否否开始初始化读取温度是否大于 90 度是否小于20 度显示温度点 亮 相 应的 led,启动蜂鸣器点亮相应的 led,启动蜂鸣器结束文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文
48、档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H
49、3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文
50、档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H3E6J2K3 ZS6O9W4M6T7文档编码:CB3H7V1Z7X4 HL9H