文档详情

基于51单片机的电子万年历.docx

发布:2022-02-19约1.26万字共25页下载文档
文本预览下载声明
PAGE 17 摘要 为了让传统万年历功能更加丰富,本文设计了一套可用于对实时温度进行检测的万年历的方案。本套设计方案采用51单片机作为系统的主控芯片,搭配LCD显示屏、温度传感器、时钟芯片以及其他外围I/O设备,通过方案论证,最终确定了本文方案。 在对设计出的硬件系统进行测试时,通过按键可对时间进行调整,调整后系统随着设置进行改变并且系统可以实现对于环境温度的实时监测。系统还可以通过按键对闹钟时间进行设置。显示屏对当前时间、阳历、阴历、周几以及当前所处环境的温度信息进行显示。经过测试发现系统可以实现设计要求。 关键词:万年历;温度检测;闹钟;51单片机 Abstract In order to enrich the functions of the traditional perpetual calendar, this paper designs a set of perpetual calendar schemes that can be used to detect real-time temperature. This design scheme uses 51 single-chip microcomputer as the main control chip of the system, with LCD display, temperature sensor, clock chip and other peripheral I/O devices. Through the demonstration of the scheme, the scheme of this article is finally determined. When testing the designed hardware system, the time can be adjusted by pressing the button. After the adjustment, the system changes with the settings and the system can realize real-time monitoring of the ambient temperature. The system can also set the alarm time by pressing the button. The display screen displays the current time, solar calendar, lunar calendar, day of the week, and temperature information of the current environment. After testing, it is found that the system can meet the design requirements. Keywords: perpetual calendar; temperature detection; alarm clock; 51 single chip microcomputer 目 录 TOC \o 1-3 \h \z \u 摘要 I Abstract II 1 绪论 1 1.1 论文研究的背景及意义 1 1.2 国内外研究现状 1 1.3 本文主要研究内容及论文结构安排 1 2 系统方案论证 3 2.1 系统设计方案 3 2.2 主控模块选型 3 2.3 显示模块选型 4 2.4 时钟芯片 5 2.5 设计语言的选择 6 3 硬件电路的设计 7 3.1 单片机 7 3.1.1 单片机的应用 7 3.1.2 单片机最小系统 8 3.1.3 系统时钟电路 8 3.1.4 系统复位电路 9 3.1.5 中断系统 10 3.2 显示模块电路 10 3.3 时钟模块电路 11 3.4 温度传感器模块电路 11 3.5 蜂鸣器电路 12 3.6 按键模块电路 12 4 系统软件设计 14 4.1 系统设计软件 14 4.1.1 Altium Designer 14 4.1.2 Keil C51 14 4.2 软件设计流程图 14 4.2.1 主函数流程图 14 4.2.2 传感器模块流程图 15 4.2.3 按键模块流程图 15 5 系统测试 17 总结 18 参考文献 19 致谢 20 1 绪论 1.1 论文研究的背景及意义 时间对于任何事
显示全部
相似文档