- 7
- 0
- 约2.97万字
- 约 51页
- 2018-06-10 发布于浙江
- 举报
多功能数字时钟制作与计毕业论文
摘 要随着生活节奏的加快,时间对于人们越来越重要。此时,多功能数字时钟的出现为人们带来了极大的便利。多功能数字钟与机械式时钟相比具有更高的准确性和直观性,是一种采用数字电路技术来实现时、分、秒计时的装置。本文介绍了基于STC89C52单片机的多功能数字时钟的硬件结构和软硬件设计方法。本设计由液晶显示模块、温湿度采集模块、时间处理模块和按键设置模块四个模块组成。系统以STC89C52为核心控制芯片,以DS1302为时钟芯片,以DHT11为温湿度采集器,通过液晶显示器LCD12864实时显示年、月、日、时、分、秒、温湿度等,通过按键设置年月日和星期以及定时闹钟,定时闹钟时间到自动发出警报。此万年历具有读取方便、显示直观、功能多样、电路简洁、成本低廉等诸多优点,具有广阔的市场前景。关键字:单片机STC89C52, DS1302,LCD12864,数字钟ABSTRACTWith the accelerated pace of life, time is becoming increasingly important to people. At this time, the emergence of multi-functional digital clock to bring a great convenience. Multifunction digital clock with the mechanical clock has higher accuracy and intuitive, is a digital circuit technology to realize the hours, minutes, seconds, timing devices. This article describes the hardware architecture and hardware and software design STC89C52 MCU multifunction digital clock. The design of the liquid crystal display module, temperature and humidity acquisition module, a processing module and a time setting module four key modules. STC89C52 system as the core control chip, DS1302 clock chip, DHT11 as temperature and humidity logger, LCD display LCD12864 display by year, month, day, real-time, minutes, seconds, temperature and humidity, the date set by the button and a timing clock and day of week, time to automatically alert the alarm time. This calendar has easy to read, display and intuitive, versatile, simple circuit, low cost, and many other advantages, has broad market prospects.Keywords: SCM STC89C52, DS1302, LCD12864, Digital clock目录第1章引言11.1课题研究的背景及意义11.2课题研究的目的11.3单片机简介21.3.1单片机的发展及应用21.3.2单片机的最小系统5第2章总体方案82.1系统的设计思路82.2系统硬件描述82.3系统软件描述9第3章系统的硬件设计113.1硬件芯片介绍113.1.1 STC89C52单片机113.1.2 DS1302时钟芯片153.1.3 DHT11温湿度传感器183.1.4 LCD12864液晶显示屏223.2系统硬件架构253.2.1时钟模块253.2.2温湿度传感器模块263.2.3液晶显示模块273.2.4按键模块273.2.5蜂鸣器报警模块283.2.6复位电路29第4章系统的软件设计304.1软件设计总体说明304.2主程序流程图的设计304.3程序设计324.3.1 DS1302读写程序设计324.3.2温湿度程序设计334.3.3 LCD12864程序设计34第5章测试与结果分析355.1??硬件测试355.2??软件测试355.3??测试结果分析与结论365.3.1测试结果分析36
原创力文档

文档评论(0)