没有合适的资源?快使用搜索试试~ 我知道了~
(完整word)51单片机时钟显示+温度显示.doc
需积分: 13 0 下载量 143 浏览量
2022-11-15
16:40:48
上传
评论
收藏 324KB DOC 举报
温馨提示
试读
37页
(完整word)51单片机时钟显示+温度显示.doc
资源推荐
资源详情
资源评论
(完整 word)51 单片机时钟显示+温度显示
门急诊医技楼外脚手架采用悬挑式单排脚手架,基础回填后改为落地式双排脚手架,脚手架搭设高度为23m。病房医技楼外脚手架采用悬挑双排脚手架,分四次悬挑
of backbone backbone role; to full strengthening members youth work, full play youth employees in company development in the of force role; to improve independent Commission against corruption work level, strengthening on enterprise business key link of effectiveness monitored. , And maintain stability. To further strengthen publicity and education, improve the overall legal system. We must strengthen safety management, establish and improve the education, supervision, and evaluation as one of the traffic safety management mechanism. To conscientiously sum up the Olympic security controls, promoting integrated management to a higher level, higher standards, a higher level of development. Employees, today is lunar calendar on December 24, the ox Bell is about to ring, at this time of year, we clearly feel the pulse of the XX power generation company to flourish, to more clearly hear XX power generation companies mature and symmetry breathing. Recalling past one another across a railing, we are enthusiastic and full of confidence. Future development opportunities, we more exciting fight more spirited. Employees, let us together across 2013 full of challenges and opportunities, to create a green, low-cost operation, full of humane care of a world-class power
generation company and work hard! The occasion of the Spring Festival, my sincere wish that you and the families of the staff in the new year, good health, happy, happy
湘南学院
物电系
学院: 电气工程学院
题目: 单片机 LCD 时钟显示和温度测量
学生姓名:
专业班级:
指导老师:
教研室主任:
2012 年 6 月 29 日
一、概述:
本次设计的 LCD 时钟显示和温度测量系统是由中央控制器、温度检测器、时钟系统、显示器
及键盘部分组成.控制器采用单片机 STC89C51RC,温度检测部分采用 DS18B20 温度传感器,时钟
系统用时钟芯片 DS1302,用 LCD 液晶 1602 作为显示器,用蜂鸣器构成闹铃模块.单片机通过时
钟芯片 DS1302 获取时间数据,对数据处理后显示时间;温度传感器 DS18B20 采集温度信号送该
给单片机处理;单片机再把时间数据和温度数据送液晶显示器 1602 显示;键盘是用来调整时间
的.
(完整 word)51 单片机时钟显示+温度显示
门急诊医技楼外脚手架采用悬挑式单排脚手架,基础回填后改为落地式双排脚手架,脚手架搭设高度为23m。病房医技楼外脚手架采用悬挑双排脚手架,分四次悬挑
of backbone backbone role; to full strengthening members youth work, full play youth employees in company development in the of force role; to improve independent Commission against corruption work level, strengthening on enterprise business key link of effectiveness monitored. , And maintain stability. To further strengthen publicity and education, improve the overall legal system. We must strengthen safety management, establish and improve the education, supervision, and evaluation as one of the traffic safety management mechanism. To conscientiously sum up the Olympic security controls, promoting integrated management to a higher level, higher standards, a higher level of development. Employees, today is lunar calendar on December 24, the ox Bell is about to ring, at this time of year, we clearly feel the pulse of the XX power generation company to flourish, to more clearly hear XX power generation companies mature and symmetry breathing. Recalling past one another across a railing, we are enthusiastic and full of confidence. Future development opportunities, we more exciting fight more spirited. Employees, let us together across 2013 full of challenges and opportunities, to create a green, low-cost operation, full of humane care of a world-class power
generation company and work hard! The occasion of the Spring Festival, my sincere wish that you and the families of the staff in the new year, good health, happy, happy
二、方案设计及方案论证
1。 时钟显示和温度测量的总体设计思路
按照系统的设计功能要求,本时钟显示和温度测量系统的设计必须采用单片机软件系统实现,
用单片机的自动控制能力配合按键控制,来控制时钟、温度的调整及显示.获得时钟显示和温度
测量数据信息,单片机对其进行一系列的处理,最后通过液晶显示出来.
2.时钟显示和温度测量系统方案论证
2.1 时钟系统方案选择
方案 1:通过单片机内部的定时器/计数器,用软件实现,直接用单片机的定时器编程以实现
时钟;
方案 2:用专门的时钟芯片实现时钟的记时,再把时间数据送入单片机,由单片机控制显示。
虽然用软件实现时钟硬件线路简单,但是程序运行的每一步都需要时间,多一步或少一步程
序都会影响记时的准确度,对定时器定时也不是十分准确,时钟精度很低,对于我们实现所需要
的功能造成软件编程非常复杂。用专用时钟芯片硬件成本相对较高,但它的精度很高,软件编程
很简单.综上所述,选择方案 2。
本次设计采用具有涓细电流充电能力的低功耗实时时钟电路 DS1302。它可以对年、月、日、
周日、时、分、秒进行计时,且具有闰年补偿等多种功能。它采用主电源和备用电源双电源供
电。它的工作电压范围 2。0~5。5V,在 2.2V 时,小于 300nA.它内部含有 31 个字节的静态 RAM,
可提供用户访问.
DS1302 可以对年、月、日、周日、时、分、秒进行计时,可以达到我们设计的基本的要求。
内部的寄存器为我们调时,闹钟定时提供了寄存空间.备用用电源也实现了当系统断电后,时钟
仍然可以保持。而且它是串行接口,与单片机通信所需要的接口少。
2。2 显示系统的方案比较
方案 1:用数码管或 LED 显示。
方案 2:用液晶 1602 显示。
方案 3:用液晶 12864 显示。
时钟和温度的显示可以用数码管或 LED,而且价格便宜.但是数码管的只能显示简单的设
计的系统,与我们设计要求也不相符。有很多东西需要显示,还是用显示功能更好的液晶显
示器比较好,它能显示更多的数据,用 12864 显示略想复杂,用 1602 液晶显示可以完全满
足本次设计的数据显示要求。
2.3 温度系统方案选择
方案 1:用热敏电阻等测温元件测出电压,再转换成对应的温度.需要比较多的外部元件支
持,且硬件电路复杂,制作成本相对较高。
方案 2:用 DS18B20 直接测温.DS18B20 温度传感器是美国 DALLAS 半导体公司最新推出的一
(完整 word)51 单片机时钟显示+温度显示
门急诊医技楼外脚手架采用悬挑式单排脚手架,基础回填后改为落地式双排脚手架,脚手架搭设高度为23m。病房医技楼外脚手架采用悬挑双排脚手架,分四次悬挑
of backbone backbone role; to full strengthening members youth work, full play youth employees in company development in the of force role; to improve independent Commission against corruption work level, strengthening on enterprise business key link of effectiveness monitored. , And maintain stability. To further strengthen publicity and education, improve the overall legal system. We must strengthen safety management, establish and improve the education, supervision, and evaluation as one of the traffic safety management mechanism. To conscientiously sum up the Olympic security controls, promoting integrated management to a higher level, higher standards, a higher level of development. Employees, today is lunar calendar on December 24, the ox Bell is about to ring, at this time of year, we clearly feel the pulse of the XX power generation company to flourish, to more clearly hear XX power generation companies mature and symmetry breathing. Recalling past one another across a railing, we are enthusiastic and full of confidence. Future development opportunities, we more exciting fight more spirited. Employees, let us together across 2013 full of challenges and opportunities, to create a green, low-cost operation, full of humane care of a world-class power
generation company and work hard! The occasion of the Spring Festival, my sincere wish that you and the families of the staff in the new year, good health, happy, happy
种改进型智能温度传感器,它能直接读出被测温度,并且可根据实际要求通过简单的编程实现 9~
12 位的数字值读数方式.
经比较,我们选择方案 2.
温度实现只能通过外部的温度传感器来实现。经上网查阅,DS18b20 体积小,只有 3 只脚,
电路接法简单.精度为 0.5°C,也符合我们设计的要求.DS18B20 也是我们通常使用的型号,因
此温度传感器用 DS18B20。
2.4 键盘控制方案选择
方案 1:购买集成键盘,采用矩阵形式连接.
方案 2:购买单个复位开关做成键盘.
虽然集成键盘美观,与单片机的接口少,但是它的成本比较高。单片机的 IO 口对于我们的设
计绰绰有余。通常我们选用价格便宜单个复位开关做成键盘。
3.时钟显示和温度测量系统总体设计
初步确定设计系统由单片机主控模块、时钟模块、测温模块、闹铃模块、显示模块、键盘
接口模块共 6 个模块组成,电路系统框图如下图所示。
图 1:电路系统框图
三、硬件电路单元设计
1、单片机最小系统设计
1。1 复位电路:
复位电路有两种方式:上电复位和按钮复位,我们主要用按钮复位方式。如下图所示:
主
控
器
件
STC89C51
DS18B20
温度采集系统
DS1320
时间采集系统
1602
显示系统
蜂鸣器
闹铃系统
键盘
控制系统
(完整 word)51 单片机时钟显示+温度显示
门急诊医技楼外脚手架采用悬挑式单排脚手架,基础回填后改为落地式双排脚手架,脚手架搭设高度为23m。病房医技楼外脚手架采用悬挑双排脚手架,分四次悬挑
of backbone backbone role; to full strengthening members youth work, full play youth employees in company development in the of force role; to improve independent Commission against corruption work level, strengthening on enterprise business key link of effectiveness monitored. , And maintain stability. To further strengthen publicity and education, improve the overall legal system. We must strengthen safety management, establish and improve the education, supervision, and evaluation as one of the traffic safety management mechanism. To conscientiously sum up the Olympic security controls, promoting integrated management to a higher level, higher standards, a higher level of development. Employees, today is lunar calendar on December 24, the ox Bell is about to ring, at this time of year, we clearly feel the pulse of the XX power generation company to flourish, to more clearly hear XX power generation companies mature and symmetry breathing. Recalling past one another across a railing, we are enthusiastic and full of confidence. Future development opportunities, we more exciting fight more spirited. Employees, let us together across 2013 full of challenges and opportunities, to create a green, low-cost operation, full of humane care of a world-class power
generation company and work hard! The occasion of the Spring Festival, my sincere wish that you and the families of the staff in the new year, good health, happy, happy
图 2:复位电路
1。2 晶振电路
晶振电路选取条件:晶振 12M,电容 20pF 到 30pF,本电路选取 20pF。晶振电路原理如下图:
图 3:晶振电路
2、时钟系统设计
DS1302 时钟电路晶振选用 3。2678KHZ,原理图如下:
图 4:基于 ds1302 时钟系统设计电路
3、温度系统设计
(完整 word)51 单片机时钟显示+温度显示
门急诊医技楼外脚手架采用悬挑式单排脚手架,基础回填后改为落地式双排脚手架,脚手架搭设高度为23m。病房医技楼外脚手架采用悬挑双排脚手架,分四次悬挑
of backbone backbone role; to full strengthening members youth work, full play youth employees in company development in the of force role; to improve independent Commission against corruption work level, strengthening on enterprise business key link of effectiveness monitored. , And maintain stability. To further strengthen publicity and education, improve the overall legal system. We must strengthen safety management, establish and improve the education, supervision, and evaluation as one of the traffic safety management mechanism. To conscientiously sum up the Olympic security controls, promoting integrated management to a higher level, higher standards, a higher level of development. Employees, today is lunar calendar on December 24, the ox Bell is about to ring, at this time of year, we clearly feel the pulse of the XX power generation company to flourish, to more clearly hear XX power generation companies mature and symmetry breathing. Recalling past one another across a railing, we are enthusiastic and full of confidence. Future development opportunities, we more exciting fight more spirited. Employees, let us together across 2013 full of challenges and opportunities, to create a green, low-cost operation, full of humane care of a world-class power
generation company and work hard! The occasion of the Spring Festival, my sincere wish that you and the families of the staff in the new year, good health, happy, happy
DS18B20 温度传感 DQ 端接单片机 P1.3 口,电路原理图如下:
图 5:基于 DS18b20 温度系统设计电路
4、液晶显示系统设计
1602 液晶显示电路由 1K 电阻和 10K 的精密电阻组成,控制端接 P1。0、P1。1、P1。2 口,数
据端接 P2 口,电路图如下:
图 6:液晶 1602 显示电路
5、蜂鸣器系统设计
蜂鸣器闹铃电路由蜂鸣器跟 1K 限流电阻组成,电路图如下:
剩余36页未读,继续阅读
资源评论
xinkai1688
- 粉丝: 344
- 资源: 8万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功