您好,欢迎访问三七文档
学号:060510133基于51单片机的电子时钟设计分院电子信息工程学院专业名称电子信息科学与技术班级0601姓名指导教师2010年5月12日河南农业大学华豫学院本科毕业论文(设计)河南农业大学华豫学院本科毕业论文(设计)摘要随着单片机技术的飞速发展,在其推动下,现代的电子产品几乎渗透到了社会的各个领域,有力地推动了社会生产力的发展和社会信息化程度的提高,同时也使现代电子产品性能进一步提高。时间对于人们来说总是那么的宝贵,可以说时间和金钱是划上了等号。准确的掌握时间和分配时间对人们来说至关重要。因此采用单片机为主的数码管为显示器的电子时钟就体现出了很大的优势。电子钟的设计方法有很多种,但利用单片机制作的电子时钟更具有编程灵活、便于电子功能的扩充、精确度高、便于携带、显示直观等特点。通过利用MCS-51单片机内部的定时器/计数器功能来实现电子时钟的计时方法。主要由AT89S51芯片和LED数码显示管为核心,构成了一个单片机电子时钟。关键词:单片机,AT89S51,电子时钟,LED河南农业大学华豫学院本科毕业论文(设计)AbstractWiththerapiddevelopmentofmicrocomputertechnologyinitspromotion,modernelectronicsintoalmostallareasofsociety,astrongimpetustothedevelopmentofsocialproductiveforcesandsocialimprovementinthelevelofinformation,butalsotofurtherimprovetheperformanceofmodernelectronicproducts.Timeisalwayssovaluableforpeoplewhocansaythattimeandmoneyistheequalsign.Accurategraspoftimeandallocationoftimeiscrucialtopeople.Therefore,thedigitalcontrolbasedonmicrocomputer-basedelectronicclockonthedisplayreflectsagreatadvantage.ClockDesignTherearemanyways,however,producedbysinglechipelectronicclockismoreflexibleprogramming,andeasyexpansionofelectroniccapabilities,highaccuracy,easytocarry,displayvisualandsoon.Inthispaper,throughtheuseofMCS-51microcontroller'sinternaltimer/counterfunctiontoimplementtheelectronicclocktimingmethod.MainlybytheAT89S51chipandLEDdigitaldisplaytubeasthecore,formingasinglechipelectronicclock.Keyword:Monolithicintegratedcircuit,AT89S51,Electronicclock,LED河南农业大学华豫学院本科毕业论文(设计)目录1前言...........................................................................................................................11.1概述.................................................................................................................11.2研究目的.........................................................................................................12单片机概述...............................................................................................................22.1单片机的概念.................................................................................................22.2单片机的发展史和发展趋势.........................................................................22.2.1单片机的发展历史...............................................................................22.2.2单片机的发展趋势...............................................................................32.3单片机的特点.................................................................................................32.4MCS-51单片机的基本结构............................................................................32.4.1MCS-51单片机的基本组成..................................................................32.4.2AT89S51单片机的引脚........................................................................53系统设计...................................................................................................................63.1设计方法及原理.............................................................................................63.1.1设计方法...............................................................................................63.1.2电子时钟原理.......................................................................................63.1.3数码管显示原理...................................................................................63.2总体设计.........................................................................................................73.2.1系统说明...............................................................................................73.2.2系统框图...............................................................................................73.3模块设计.........................................................................................................83.3.1电源部分...............................................................................................83.3.2复位电路...............................................................................................83.3.3数码管的连接电路...............................................................................93.3.4控制部分.............................................................................................104软件设计.................................................................................................................114.1程序流程图...................................................................................................114.2源程序...........................................................................................................134.2.1中断入口程序.....................................................................................14河南农业大学华豫学院本科毕业论文(设计)4.2.2主程序.............................................................................................154.2.31秒计时程序.......................................................................................154.2.4闪动调时程序.....................................................................................174.2.5加1子程序.........................................................................................184.2.6清零程序....................................................................
本文标题:关于51单片机论文
链接地址:https://www.777doc.com/doc-5234982 .html