基于单片机的作息时间控制器毕业设计

  • 格式:doc
  • 大小:747.50 KB
  • 文档页数:60

下载文档原格式

  / 60
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

本科毕业设计基于单片机的作息时间控制器

基于单片机的作息时间控制器

摘要

单片机应用技术飞速发展,纵观我们现在生活的各个领域,而STC89C52RC 单片机在其中表现得很出色。本系统是由STC89C52RC单片机为控制核心,辅以必要的外围电路,设计了一个结构简单,功能齐全的作息时间控制器,采用DS1302时钟芯片来对计算时间,显示采用LCD1602液晶模块进行数字显示,设计出了更准确定时、更省电的控制系统。它具有设置时间、日期、星期的基本功能,并且能够显示年、月、日、时、分、秒、星期。能够设置多个闹钟时间,并能检测温度。系统选用单片机最小系统应用程序,添加比较程序、时间调整程序及蜂鸣程序,通过时间比较程序触发蜂鸣,实现闹钟功能,完成设计所需求的软件环境。测试程序的可行性并用Proteus进行仿真。

系统读取方便、显示直观、功能多样、电路简洁、成本低廉等诸多优点,具有广阔的市场前景。

关键词:作息时间控制器STC89C52RC DS1302 LCD1602

Time Schedule Controller Based on Microcontroller

Huang Xiaolin

(College of Engineering, South China Agricultural University, Guangzhou 510642, China) Abstract: The rapid development of microcomputer application technology, in all areas of life we are now, and STC89C52RC single chip microcomputer in which did very well. This system is composed of STC89C52RC single chip microcomputer as control core, with the necessary peripheral circuits, design a simple structure, time controller with complete functions, using the clock chip DS1302 to calculate time, shows the use of LCD1602 liquid crystal module for digital display, design a more accurate timing control system, the more energy. It has set the time, date, week basic functions, and can display year, month, day, time, minutes and seconds, week. To set a number of alarm clocks, and can detect temperature. The system choose the smallest SCM system applications, add comparison program, time to adjust the procedure and buzzer procedures, through the time comparison procedures triggered buzzer, alarm clock function, completed the design needs of the software environment. Feasibility test program with the Proteus simulation.

The system is easy to read, intuitive display, functional diversity, simple circuit, low cost and many other advantages, has broad market prospects.

Key words: time schedule controller stc89C52rc ds1302 lcd1602

目录

1 前言 (1)

1.1 课题的研究背景 (1)

1.2 课题的研究目的与意义 (1)

1.3 单片机的发展 (1)

1.4 单片机的应用 (2)

1.5 单片机的一般硬件特性 (2)

2 总体方案确定 (3)

2.1 系统总体功能 (3)

2.2 控制电路的方案选择 (3)

2.3 单片机芯片的方案选择 (4)

2.4 显示电路的方案选择 (4)

2.5 时钟部分的方案选择 (5)

3 理论分析及设计 (5)

3.1 系统概述 (5)

3.1.1 系统硬件框架 (5)

3.1.2 系统原理图 (6)

3.2 硬件的电路设计 (6)

3.2.1 STC89C52RC单片机 (6)

3.2.2 时钟芯片DS1302 (9)

3.2.3 显示电路模块 (13)

3.2.4 复位电路模块 (16)

3.2.5 晶振电路模块 (17)

3.2.6 温度模块 (18)

3.2.7 存储模块 (19)

3.3 系统的软件设计 (20)

4 测试与实验分析 (20)

4.1 PROTEUS电路仿真特性 (20)

4.2 电路仿真 (22)

4.3 系统的硬件调试 (23)

5 结论 (24)

参考文献 (26)

附录 (27)

致谢 (1)

华南农业大学本科生毕业设计成绩评定表