资源预览内容
第1页 / 共45页
第2页 / 共45页
第3页 / 共45页
第4页 / 共45页
第5页 / 共45页
第6页 / 共45页
第7页 / 共45页
第8页 / 共45页
第9页 / 共45页
第10页 / 共45页
亲,该文档总共45页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
沈阳理工大学应用技术学院沈阳理工大学应用技术学院毕业设计(论文)毕业设计(论文)题 目: 基于单片机的数字电子秒表的设计与实现 系 别: 信息工程系 专 业: 自动化 学生姓名: 胡 培 指导教师: 唐朝仁 年 月 日I摘 要近年来随着科技的飞速发展,单片机的应用正在不断的走向深入。本文阐述了基于单片机的数字电子秒表设计。本设计主要特点是计时精度达到 0.001s,解决了传统的由于计时精度不够造成的误差和不公平性,是各种体育竞赛的必备设备之一。另外硬件部分设置了查看按键,可以对秒表上一次计时时间进行保存,供使用者查询。本设计的数字电子秒表系统采用 AT89C52 单片机为中心器件,利用其定时器/计数器定时和记数的原理,结合显示电路、LED 数码管以及外部中断电路来设计计时器。将软、硬件有机地结合起来,使得系统能够实现五位 LED 显示,显示时间为099.999 秒,计时精度为 0.001 秒,能正确地进行计时,同时能记录一次时间,并在下一次计时后对上一次计时时间进行查询。其中软件系统采用汇编语言编写程序,包括显示程序,定时中断服务,外部中断服务程序,延时程序等,并在 WAVE 中调试运行,硬件系统利用 PROTEUS 强大的功能来实现,简单切易于观察,在仿真中就可以观察到实际的工作状态。 关键字关键字:单片机;数字电子秒表;仿真 IIAbstractWith the rapid development of science and technology in recent years, SCM applications are constant-depth manner. In this paper, based on single chip design of digital electronic stopwatch. The main characteristics of this design timing accuracy of 0.001s, to solve the traditional result of a lack accuracy due to timing errors and unfair, and is a variety of sports competitions, one of the essential equipment. In addition the hardware part of the set View button on the stopwatch can be the last time to save time for user queries.The design of the multi-function stopwatch system uses STC89C52 microcontroller as the central device, and use its timer / counter timing and the count principles, combined with display circuit, LED digital tube, as well as the external interrupt circuit to design a timer. The software and hardware together organically, allowing the system to achieve two LED display shows the time from 0 to 99.999 seconds, Timing accuracy of 0.001 seconds, Be able to correctly time at the same time to record a time, and the next time after the last time the time to search.automatically added a second in which software systems using assembly language programming, including the display program, timing, interrupt service, external interrupt service routine, delay procedures, key consumer shaking procedures, and WAVE in the commissioning, operation, hardware system uses to achieve PROTEUS powerful, simple and easy to observe the cut in the simulation can be observed on the actual working condition.Keyword:LED display;High-precision stopwatch;STC89C52目 录绪 论.11 硬件设计.41.1 总体方案的设计.41.2 单片机的选择.51.3 显示电路的选择与设计.81.4 按键电路的选择与设计.111.5 时钟电路的选择与设计.121.6 复位电路的选择与设计.141.7 系统总电路的设计.162 软件设计.192.1 程序设计思想.192.2 系统资源的分配.192.3 主程序设计.202.4 中断程序设计.213 数字电子秒表的安装与调试.263.1 软件的仿真与调试.263.2 硬件的安装与调试.263.3 系统程序的烧录.273.4 数字电子秒表的精度调试.28结 论.29致 谢.30参考文献.31附录 A 资料翻译.32A.1 英文原文.32A.2 中文翻译.
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号