《单片机技术》课程设计说明书().doc
文本预览下载声明
单片机技术课程设计说明书
基于单片机的数字式秒表设计
系 、 部:
学生姓名:
指导教师: 职称
专 业:
班 级:
完成时间:
摘 要
时间是工农业生产,国防,人民生活等领域不可缺少的。它涉及到我们工作,生活的各个方面。没有时间人们的一切行为都无法进行。而近年来随着科技的飞速发展,单片机的应用正在不断的走向深入。本文阐述了基于单片机的数字式秒表设计。主要特点是计时精度达到ms级,实现启动、停止、暂停、继续、清零功能。解决了传统的由于计时精度不够造成的误差和不能记录多组数据局限性。是各种体育竞赛的必备设备之一。
本设计分为硬件电路和软件程序两大部分构成。数字电子秒表系统采用AT89S52单片机为中心器件,利用其定时器/计数器定时和记数的原理,结合显示电路、LED数码管以及外部控制电路来设计计时器。将软、硬件系统有机地结合起来,使得系统能够实现八位LED显示,显示时间为0~0.01秒,能正确地进行计时。其中软件系统采用汇编语言编写程序,它与硬件电路的关系最直接。包括显示程序,定时中断服务,延时程序等,硬件系统利用PROTEUS强大的功能来实现,简单切易于观察,在仿真中就可以观察到实际的工作状态,并且制作实物,更直观深刻。设计数字式秒表,具有广泛的推广应用价值。
关键词 数字式秒表;单片机;硬件系统;软件程序
ABSTRACT
Time is the industry and agriculture production, defense, peoples living areas such as indispensable. It involves our work, all aspects of life. Not all the time people behavior can undertake. But in recent years, with the rapid development of science and technology, the application of SCM is continually to the deepening. This paper expounds the digital stopwatch design based on single chip. Main characteristic is a timing accuracy reached ms level, realize start and stop, pause, continue, reset function. To solve the traditional because timing precision insufficient errors and cannot record multi-group data limitations. All kinds of sports contest is one of necessary equipments.
This design is divided into hardware circuit and software program two most constitutes. Digital electronic stopwatch system adopts AT89S52 singlechip center device, using its timer/counter timing and the principle of numeration, combining LED digital display circuit, control circuit and external tube to design the timer. Will the software and hardware system organically, and makes the system can realize the eight LED display, display time as 0 ~ 59 points 59 seconds 99 milliseconds, timing accuracy of 0.01 seconds, can correctly to the timer. Among them software system USES assembly
显示全部