基于单片机的电子万年历的设计与制作 - 图文 联系客服

发布时间 : 星期四 文章基于单片机的电子万年历的设计与制作 - 图文更新完毕开始阅读46fa9556af45b307e971970f

郑州航空工业管理学院

毕 业 论 文(设 计)

题 目 基于单片机的电子万年历的设计与制作

二О一三年五月二十三日

郑州航空工业管理学院毕业设计(论文)

摘 要

单片机应用技术飞速发展,从导弹的导航装置到飞机上各种仪表的控制,从计算机的网络通讯与数据传输到工业自动化过程的实时控制和数据处理,以及生活中广泛使用的各种智能IC卡、电子宠物等,这些都离不开单片机。单片机是集CPU、RAM、ROM 、定时、计数和多种接口于一体的微控制器。它体积小,成本低,功能强,广泛应用于智能产业和工业自动化上。

本文通过对一个基于单片机的能实现万年历功能电子时钟的设计,系统由主控制器STC89C52为控制中心,DS12C887产生时钟,DS18B20产生温度,12864液晶显示对日期、时间等进行显示,按键可以设置时间、闹钟等。能实现时钟、日历、时间和温度显示的功能。

今后万年历将会朝着精准度更高,外观更加美丽,价格更加实惠的方向发展,并且将会出现更多的辅助功能。

关键词:单片机,农历查询,万年历,温度显示

I

郑州航空工业管理学院毕业设计(论文)

ABSTRACT

As the rapid development of Single-chip Microcomputer Application technology, from the navigation device of missile to the various instruments on the aircraft control and from computer communication network and data transmission to industrial real-time automation process control and data processing, as well as the extensive use of the smart card and electronic pets in live, All of this is inseparable from the microcontroller. SCM is set to CPU, RAM, ROM, timing, counting and multiple interfaces in one microcontroller. It has the advantages of small volume, low cost, strong function, widely used in smart industries, and industrial automation.

This paper designed a electronic clock which can achieve calendar function based on microcontroller, the system consists of main controller STC89C52, clock circuit, display circuit, DS12C887circuit, and a reset circuit components, the main control system as the control center, DS12C887 generates a clock, DS18B20 generates temperature, a 12864 LCD display the date and time, the key can set the time, alarm clock, achieved the clock calendar and time display function.

In the future, the calendar will be more accurate, look more beautiful; more affordable prices of the direction of development, and will appear more auxiliary function.

Keywords: Monolithic single-chip,lunar calendar demand, perpetual calendars display temperature

II

郑州航空工业管理学院毕业设计(论文)

目 录

摘 要...............................................................I ABSTRACT............................................................II 第1章 绪论.........................................................1 1.1 课题的背景 ..................................................... 1 1.2 电子万年历的发展 ............................................... 1 1.3 电子万年历设计 ................................................. 1 第2章 设计要求与方案论证............................................3 2.1 设计要求 ....................................................... 3 2.2 方案论证 ....................................................... 3 2.2.1 控制部分方案设计 .......................................... .3 2.2.2 显示部分的设计 ........................................... ..4 2.2.3 单片机芯片的选择方案和论证 ................................. 4 2.2.4 时钟芯片的选择方案和论证 ................................... 4 2.2.5 温度传感器的选择方案和论证 ................................. 5 2.2.6 电源的选择方案 ............................................. 5 第3章 硬件设计......................................................6 3.1 电路的设计框图 ................................................. 6 3.2 主要单元电路的设计 ............................................. 6 3.2.1 单片机主控电路设计 ......................................... 6 3.2.2 时钟振荡电路设计 ........................................... 8 3.2.3 复位电路设计 ............................................... 9 3.2.4 温度传感器电路设计 ......................................... 9 3.2.5 时钟电路设计 .............................................. 12 3.2.6 显示电路设计 .............................................. 13

1