基于单片机电子万年历的设计毕业论文

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

基于单片机电子万年历-的设计毕业论文

号:

毕业设计(论文)说明书

课题名称:基于单片机的电子万年历设计

院(系):计算机工程系

专业:通信工程

班级:通信072班

学生姓名:黄董

学号: 200700402056

指导教师:袁浩浩

2011年 05月25日

摘要

电子万年历是一种应用非常广泛日常计时工具,对现代社会越来越重要。此电子万年历在硬件方面主要采用STC89C52单片机作为主控核心,由DS1302时钟芯片提供时钟、1602LCD液晶显示屏显示。STC89C52单片机是由Atmel公司推出的,功耗小,电压可选用4~6V电压供电;DS1302时钟芯片是美国DALLAS公司推出的低功耗实时时钟芯片,它可以对年、月、日、星期、时、分、秒进行计时,还具有闰年补偿等多种功能,而且DS1302的使用寿命长,误差小;对于数字电子万年历采用直观的数字显示,数字显示是采用的1602LED液晶显示屏来显示,可以同时显示年、月、日、星期、时、分、秒等信息。此外,该电子万年历还具有时间校准等功能。在软件方面,主要包括日历程序、时间调整程序,显示程序等。所有程序编写完成后,在Keil软件中进行调试,确定没有问题后,烧写到单片机上进行测试。

此设计主要由时钟芯片DS1302和温度传感器DS18B20采集数据到单片机进行处理再通过LCD1602显示出来,本论文主要研究了液晶显示器LCD及时钟芯片DS1302,温度传感器DS18B20与单片机之间的硬件互联及通信,对数种硬件连接方案进行了详尽的比较,在软件方面对日历算法也进行了论述。

关键词:单片机;DS1302;DS18B20;LCD1602

Abstract

Electronic calendar is a widely used tool for the daily time, more and more important in modern society. The electronic calendar in terms of hardware as the main control mainly STC89C52 microcontroller core, provided by the DS1302 clock chip clock, 1602LCD LCD display. STC89C52 microcontroller by Atmel introduced, the power consumption, voltage can be selected 4 ~ 6V voltage power supply; DS1302 clock chip introduced in the United States DALLAS low-power real time clock chip, which can be year, month, day, week, hours, minutes and seconds time, but also has leap-year compensation, and other functions, and the DS1302's long life, small error; for digital electronic calendar using an intuitive digital display, digital display is used 1602LED LCD screen to display, you can also shows year, month, day, week, hours, minutes, seconds and other information. In addition, the electronic calendar is also a time calibration and other functions. In terms of software, including calendar, time to adjust procedures, display procedures. All programming is completed, the Keil software debugging, make sure that no problem, programmed into the microcontroller for testing.

This design mainly by the clock chip DS1302 temperature sensor to the microcontroller DS18B20 collect data for processing and then through the LCD1602 display, this thesis, the liquid crystal display LCD and clock chip DS1302, temperature sensor and microcontroller DS18B20 interconnection and communication between the hardware on Several hardware connection scheme for a detailed comparison of algorithms in software on the calendar have also been discussed.

Key words: SCM; DS1302; DS18B20; LCD1602

目录

摘要................................................................................. I Abstract.......................................................................... II 第 1 章绪论.. (1)

1.1课题背景 (1)

1.2 课题意义 (1)

1.3国内外现状及水平 (1)

第2章基于单片机万年历的方案研究 (2)

2.1 系统基本方案选择和论证 (2)

2.1.1 单片机芯片的选择 (2)

2.1.2 显示模块选择方案和论证 (3)

2.1.3 时钟芯片的选择方案和论证 (3)

2.1.4 温度传感器的选择方案与论证 (3)

2.2 电路设计最终方案决定 (4)

2.3 DS1302,DS18B20和LCD1602的原理及说明4

2.3.1 LCD1602工作原理及说明 (4)

2.3.2 DS1302原理及说明 (5)

2.3.3 DS18B20工作原理及说明 (6)

第3章系统的硬件设计与实现 (7)

3.1电路设计框图 (7)

相关文档
最新文档