好文档 - 专业文书写作范文服务资料分享网站

基于单片机实现的简单的万年历设计

天下 分享 时间: 加入收藏 我要投稿 点赞

目 录

一、摘要·········································································2 二、设计任务.····································································4 三、总体方案设计与论证···························································4

1、液晶显示模块·····························································4 2、实时时间计算模块·························································5 3、实时环境温度采集模块·····················································5

4、报警模块······························································6

5、设置模块······························································6 四、总体方案组成框图··························································7 五、系统硬件设计·····························································8

1、LCD显示模块··························································8 2、实时时间计算模块······················································12 3、实时环境温度检测模块·················································16 4、报警模块·····························································21 5、设置模块·····························································22 六、系统软件设计····························································23 七、系统硬件电路设计························································24 八、系统硬件PROTEUS仿真原理图············································25 九、系统硬件仿真运行情况图··················································26 1、显示欢迎界面·························································26 2、显示实时时间··························································26 3、显示当前温度··························································27 4、时间设置······························································27 5、最高报警温度设置······················································28 6、闹钟时间设置··························································28 7、超温··································································29 8、闹钟时间到····························································29 附录一:实物图······························································30 附录三:源程序代码···························································33 附录四:参考文献····························································62

第 1 页 共 70 页

摘 要

单片机就是微控制器,是面向应用对象设计、突出控制功能的芯片。单片机接上晶振、复位电路和相应的接口电路,装载软件后就可以构成单片机应用系统。将它嵌入到形形色色的应用系统中,就构成了众多产品、设备的智能化核心。本设计就是应用单片机强大的控制功能制作而成的电子万年历,该电子万年历包括三大功能:实时显示年、月、日、时、分、秒;实时监测环境温度(可根据需要启动高温报警功能);电子闹钟。M bn

本设计采用的是AT89S52单片机,该单片机采用的MCU51内核,因此具有很好的兼容性,内部带有8KB的ROM,能够存储大量的程序,最突出特点是具有ISP在系统烧写功能,使得烧写程序更加方便。

计时芯片采用DALLAS公司的涓细充电时钟芯片DS1302,该芯片通过简单的串行通信与单片机进行通信,时钟/日历电路能够实时提供年、月、日、时分、秒信息,采用双电源供电,当外部电源掉电时能够利用后备电池准确计时。

温度检测采用DALLAS公司的数字化温度传感器,该芯片采用的是独特的“一线总线”的方式与单片机进行通信,一线总线独特而且经济的特点,是用户可以轻松的组建传感器网络,为测量系统的构建引入全新的概念。实时温度采用一线总线的方式传输大大的提高了信号的抗干扰性,分辨率可通过软件设置,其小巧的体积为各种环境下测量温度提供了方便。

显示器件采用通用型1602液晶,可显示32个字符,如果使用数

第 2 页 共 70 页

码管来做显示器件需消耗大量的系统资源,因此采用低功耗的1602液晶,该液晶显示方便,功能强大,完全能满足数字万年历的显示要求。

通过此次设计能够更加牢固的掌握单片机的应用技术,增强动手能力、硬件设计能力以及软件设计能力。

第 3 页 共 70 页

基于单片机实现的简单的万年历设计

目录一、摘要·········································································2二、设计任务.····································································4三、总体方案设计与论证···
推荐度:
点击下载文档文档为doc格式
8vflz8f4t33blzb1bwa62p7v43zg7t00htk
领取福利

微信扫码领取福利

微信扫码分享