文档详情

毕业设计(论文)-基于51单片机定时器的设计与实现.doc

发布:2019-04-12约1.49万字共32页下载文档
文本预览下载声明
基于51单片机定时器的设计与实现 2015届电子信息工程专业毕业设计(论文) PAGE \* MERGEFORMAT PAGE \* MERGEFORMAT 2 PAGE \* MERGEFORMAT PAGE \* MERGEFORMAT1 重庆三峡学院 毕?业?设?计 题目基于51单片机定时器的设计与实现 院系电子与信息工程学院 专业电子信息工程 年级 2011级 学生姓名 学生学号 指导教师职称 完成毕业设计(论文)时间 2015 年 目 录 摘要 4 关键词 4 第一章 引言 6 1.1 选题背景 6 1.2 选题现状 6 1.3选题意义 7 第二章 系统设计方案 8 2.1 课题研究内容 8 2.2 技术方案的选择 8 2.2.1 单片机选型 8 2.2.2 时钟芯片选型 8 2.2.3 液晶选择 9 第三章 硬件系统的设计 9 3.1 系统硬件框图 9 3.2 硬件介绍 10 3.2.1 AT89C51简介 10 3.2.2 DS1302时钟芯片简介 11 3.2.3 LCD1602液晶显示器简介 14 3.3 电路原理图 15 3.3.1 系统电路说明 16 第四章 软件设计 19 4.1 程序流程图 19 4.2 时间设置的子程序流程图 24 4.3 按钮子程序流程图 26 4.4 定时时间设置子程序 28 第五章 系统的测试 29 5.1 时间读取测试 29 5.2 定时功能测试 29 第六章 总结 31 致谢 32 参考文献 33 附录 基于51单片机定时器的设计与实现 重庆三峡学院电子与信息工程学院电子信息工程专业 重庆万州 404000 摘要 本设计是一款关于数字时钟开关的设计方案。该方案使用AT89C51为主控,该单片机属于51单片机,但是用法简单,功能全面,成本低廉。最重要的是,他满足数字时钟的硬件设计要求。AT89C51通过与时钟芯片DS1302进行“三线通讯”并交换时间数据,AT89C51可对DS1302读写操作,需要注意的时是,DS1302写操作前,需要关闭写保护,写完之后需要开启写保护。否则无法完成写操作。AT89C51将获得的数据更新在1602液晶显示屏上,从而方便人眼获得时间信息。 本设计主要分为硬件电路设计和软件编程两大方面。其中硬件电路设计主要由单片机、DS1302模块电路和液晶显示电路等多部分组成,而软件编程通过C语言代码来实现。 关键词 AT89C51 DS1302 C Clock Design and Implementation Based on 51 single-chip timer (Electronic and information engineering major in grade 2011,College Of Electronic and information engineering. Chongqing Three Gorges University, Chongqing WanZhou404000) ABSTRACT This design is a design of the digital clock switch. The program uses AT89C51 as the main control, the microcontroller belonging to 51 single-chip, but the usage is simple, full-featured, low cost. Most importantly, he meets the hardware design requirements of the digital clock. With the clock chip DS1302 are three line communication and exchange data through AT89C51, the AT89C51 is the DS1302 to read and write operations, need to pay attention to is, DS1302 before a write operation and need to close the write protection, finished after the need to open the write protect. Otherwise you can not complete the write operation. AT89C51 will get the data updated on the 1602 LCD screen, t
显示全部
相似文档