1、 课程设计设计报告书 基于基于 AT89S52AT89S52 单片机的单片机的 1010 秒秒表的设计秒秒表的设计 目目 录录 内容摘要 . 1 关键词 错误错误!未定义书签。未定义书签。 Abstract 错误错误!未定义书签。未定义书签。 Keywords 错误错误!未定义书签。未定义书签。 1 绪论 2 2 系统设计 . 2 2.1 设计任务与要求 . 3 2.2 方案的选择与论证 . 3 3 系统硬件设计 . 4 3.1 AT89C52 简介 4 3.2 时钟电路 . 5 3.3 复位电路 . 5 3.4 显示电路 . 6 3.5 引脚控制 7 3.6 硬件元件清单 . 7 4 软件设
2、计与仿真 7 4.1 主程序设计 7 4.2 仿真软件简介 . 9 4.3 仿真结果 . 10 4.4 系统调试 . 11 结束语 12 附录:程序清单 . 14 参考文献 . 16 1 内容内容摘要摘要:本文阐述了基于单片机的数字电子秒表设计。本设计主要 特点是计时精度达到 0.1s,是各种体育竞赛的必备设备之一。本设计的 数字电子秒表系统采用 8051 单片机为中心器件, 利用其定时器/计数器定 时和记数的原理,结合显示电路、LED 数码管设计计时器。其中软件系统 采用 C 语言编写程序,包括显示程序,定时中断服务,延时程。硬件系统 利用 PROTEUS 强大的功能来实现,简单切易于观察,
3、在仿真中就可以观察 到实际的工作状态。 关键字关键字:秒表;单片机 AT89S52;硬件;软件;仿真 Abstract:The design of the multi-function stopwatch system uses AT89S52 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 inte
4、rrupt circuit to design a timer. 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 KEIL in the commissioning, operation, hardware system uses to achieve PROTEUS p