51单片机数字秒表设计报告论文.docVIP

  • 6
  • 0
  • 约2.25万字
  • 约 42页
  • 2019-05-17 发布于河南
  • 举报
51单片机数字秒表设计报告 目录 TOC \o 1-3 \h \z \u 摘要 h I ABSTRACT h II 第一章 引言 h 1 1.1秒表的概述 h 1 1.2本设计任务 h 1 1.3系统主要功能 h 2 第二章 硬件设计 h 3 2.1总体方案的设计 h 3 2.2 单片机的选择 h 4 2.3各部分电路设计 h 5 2.3.1系统时钟电路的设计 h 5 2.3.2系统复位电路的设计 h 6 2.3.3 按键与按钮电路设计 h 7 2.4显示电路的选择与设计 h 7 2.4.1数码管的内部结构 h 8 2.4.2 数码管的外部结构 h 8 2.5系统总体电路的设计 h 9 第三章 软件设计 h 11 3.1主程序设计 h 11 3.2中断程序设计 h 12 第四章 系统调试 h 16 第五章 总结 h 17 参考文献 h 18 Ⅰ 摘要 近年来随着科学技术的发展,单片机的应用正在不断发展。本文阐述了基于51单片机的数字秒表的设计。计时秒表是一种先进的电子计数器,较多的应用在教学器材、比赛计时等,而且采用数字显示,具有直观、读取方便、功能方便等诸多优点。本设计是由硬件电路和软件程序两部分组成,硬件电路由AT89C51单片机、按键控制电路、数码显示电路、晶振电路以及复位电路组成,它使用元件少,电路结构简单,功能强大;软件采用C语言程序设计,使用keil编译源程序,产生的可执行性文件能够让单片机快速执行。该设计充分利用单片机内部资源,通过程序利用定时器中断服务程序对计时秒表开始、暂停、清零等操作进行处理,提高单片机的工作效率,使得系统能实现0~99秒的计时。 关键字:51单片机 ;秒表;定时器;中断服务程序 PAGE \* MERGEFORMAT II ABSTRACT advanced electronic counter, more application in teaching equipment, timing, etc., and adopts digital display, intuitive, easy to read, convenient features, and many other advantages. This design is consists of two parts, hardware circuit and software program, the hardware circuit is controlled by AT89C51, key circuit, digital display circuit, crystals circuit and reset circuit, it USES less component, the circuit structure is simple, powerful; Software using C language program design, use the keil compiler source code, can let the enforceability file microcontroller rapid execution. This design make full use of the single chip microcomputer internal resources, through the application using the timer interrupt service routine for timing stopwatch start, pause, reset operations such as processing, improve the work efficiency of the single chip microcomputer system can realize the timing of 0 ~ 99 seconds. Key words: 51 single chip, microcomputer A stopwatch,The timer, Interrupt service routin 第一章 引言 20世纪末,电子技术获得了飞速的发展,在其推动下,现代电子产品几乎渗透了社会的各个领域,有力地推动了社会生产力的发展和社会信息化程度的提高,同时也使现代电子产品性能进一步提高,产品更新换代的节奏也越来越快。 时间对于我们每个人来说都是很宝贵的,市场上出现的各式个样的钟表都很

文档评论(0)

1亿VIP精品文档

相关文档