文档详情

基于单片机的电子秒表.doc

发布:2019-06-11约1.35万字共29页下载文档
文本预览下载声明
桂林电子科技大学课程设计(论文)报告用纸 第 PAGE 3 页 共25 页 PAGE 课程设计(论文)说明书 题 目: 基于单片机的电子秒表 院 (系): 信息与通信学院 专 业: 电子信息工程 学生姓名:       学 号: 指导教师: 武小年 职 称: 副教授 2012年 12 月 9 日 桂林电子科技大学课程设计(论文)报告用纸 第 PAGE 3 页 共3页 桂林电子科技大学课程设计(论文)报告用纸 第 PAGE 1 页 共 3 页 摘 要 近年来随着科技的飞速发展,单片机的应用正在不断地走向深入。本文阐述了基于单片机的数字电子秒表的设计。本设计主要特点是使用了6位数码管显示,以秒为单位,虽然精确度不是非常高,但是解决了以往秒表的繁琐,另外本设计还设置了复位和暂停等按键,方便使用者控制。 本设计的数字电子秒表系统采用AT89S52单片机为中心器件、3-8线译码器74LS138芯片、74hc573锁存器以及max232芯片设计了一个数字电子秒表系统,利用其定时器/计数定时和计数的原理,结合显示电路、LED数码管以及外部中断电路来设计的计时器;系统使用6位数码管显示;还设置了复位和暂停等按键,方便使用者控制。软件系统采用C语言编程输入程序。本文将软、硬件有机地结合起来,使得系统能够实现6位LED显示,显示时间从秒到小时,计时范围比较广。其中软件系统采用C语言编程输入程序。硬件方面还使用了3-8线译码器74LS138芯片、74hc573锁存器以及max232芯片。 关键字: 单片机; 数字电子秒表; LED数码管 Abstract In recent years along with the rapid development of science and technology, SCM applications are constantly deepening. In this paper based on singlechip digital electronic stopwatch design. This design is mainly characterized by the use of 6 digital tube display, in seconds, while the precision is not very high, but solves the stopwatch is cumbersome, and the design is also provided with a reset and pause button, convenient for users to control. The design of the digital electronic stopwatch system using AT89S52 microcontroller as the center device, using the timer / counter timing and counting principles, combined with the display circuit, the LED digital tube as well as the external interrupt circuit to design the timer. The software and hardware combination, so that the system can achieve 6 LED display, display the time from seconds to hours, a relatively wide range of timing. The software system adopts C language programming input program. The hardware also used 3-8 line decoder 74LS138 chip, 74hc573 latch and an MA
显示全部
相似文档