1、 课程名称: 电子秒表 系 部: 专业班级: 学生姓名: 指导教师: 完成时间: 报告成绩: 评阅意见: 评阅老师: 评阅时间: 电子秒表 1 摘 要 21 世纪,单片机的发展非常的迅速。单片机是把主要计算机功能部件都集成在一块芯 片上的微型计算机。它是一种集计数和多种接口于一体的微控制器,被广泛应用在智能产 品和工业自动化上,而 51 单片机是个单片机中最为典型和最有代表性的一种。本设计的 数字电子秒表系统采用 STC89C51 单片机为中心器件,利用其定时器/计数器定时和记数的 原理,结合显示电路、LED 数码管以及矩阵键盘来设计秒表,将软、硬件有机地结合起来。 关键字 单片机;数字电子秒
2、表;仿真,STC89C51 电子秒表 2 ABSTRACT In the 21st century,the technology of SCM develops very quickly. SCM which is a major piece of computer components is integrated into the chip micro-computer. It is a multi-interface and counting on the micro-controller integration, and intelligence products are widely
3、used in industrial automation, and MCS-51 microcontroller is a typical and representative. This design of digital electric stopwatch system employs STC89C51 single-chip microcomputer as the core part. Based on the principle of timing and counting, the stopwatch is designed by integrating display ele
4、ctric circuit, LED digital pipe and the matrix keyboard, combining both software and hardware. Keyword Single-chip microcomputer;Digital stopwatch;Simulation;STC89C51 电子秒表 3 目录目录 第一章 引言.1 1.1 概论.2 1.2 课程设计的目的及意义.2 1.3 电子秒表的设计要求.2 1.4 电子秒表的设计方案.2 第二章 电子秒表的硬件设计4 2.1 单片机的最小系统设计.4 2.2 单片机的时钟电路4 2.3 复位电路的设计.4 2.4 显示电路的设计.5 2.5 矩阵键盘的设计.6 第三章 电子秒表的软件设计8 3.1 程序流程图8 3.2 主程序.8 3.3 中断子程序8 3.4 显示子程序 8 3.5 I/O 的分配及说明.9 第四章 电子秒表的软件仿真.10 4.1 软件调试与烧写.10 4.2 硬件仿真12 4.3 仿