基于单片机的多功能电子秒表的设计.doc
文本预览下载声明
单片机课程设计
项目名称 基于单片机的多功能电子秒表的设计
专业班级
学生姓名
指导教师
2012 年月 日
目 录摘 要 I
Abstract II
第1章 总体方案设计 1
1.1设计要求与目的 1
1.2设计思路 1
1.3工作原理 2
1.4功能简理 2
第2章 单片机的介绍 3
2.1单片机的简介 3
2.2单片机发展概述 4
2.3单片机的应用领域 5
2.3.1在智能仪器仪表上的应用 5
2.3.2在工业控制中的应用 6
2.3.3在家用电器中的应用 5
2.3.4在计算机网络和通信领域中的应用 6
2.3.5单片机在医用设备领域中的应用 6
2.4单片机的发展趋势 6
2.4.1低能耗CMOS 6
2.4.2微型单片机 7
2.4.3主流与多品种共存 7
2.5 AT89C51单片机 8
2.5.1主要特征 8
2.5.2管脚说明 8
2.5.3振荡器特性 10
2.5.4芯片擦除 10
第3章 系统硬件设计 11
3.1电源电路 11
3.2晶体振荡电路 11
3.3复位电路 12
3.4显示电路 12
3.5键盘电路 13
第4章 软件设计 16
4.1软件设计概述 16
4.2程序流程图 16
4.3子程序模块设计 17
第5章 系统调试及结果分析 21
5.1基于RS触发器的调试 21
5.2电子秒表的整体调试 21
5.3系统的功能 21
5.4系统的结果 22
结论 23
参考文献 24
附录1 系统电路图 25
附录2 源程序 26
附录3 实物图 33
摘 要
本设计的多功能秒表系统采用AT89C51单片机为中心器件,利用其定时器/计数器定时和记数的原理,结合显示电路、电源电路、LED数码管以及键盘电路来设计计时器。将软、硬件有机地结合起来,使得系统能够实现两位LED显示,显示时间为00~991,能正确地进行加、减(倒)计时,快加,快减,可以同时记录4个相对独立的时间,通过上翻下翻来查看这4个不同的计时值,可谓功能强大。其中软件系统采用汇编语言编写程序,包括显示程序,加减计数程序,快加快减程序,中断,延时程序,按键消抖程序等,硬件系统利用PROTEUS强大的功能来实现,简单切易于观察,在仿真中就可以观察到实际的工作状态。
关键字:单片机;多功能秒表;汇编
Abstract
The design of the multi-function stopwatch system using AT89C51 microcontroller as the center device, use the timer / counter timing and counting principles, combined with display circuit, power supply circuit, LED digital tube and a keyboard circuit to design the timer. The soft, hardware combination, so that the system can achieve two LED display, display time is 00 to 99 seconds per second, add 1, can correctly add, subtract ( inverted ) time, fast, fast, can be simultaneously recorded 4 relatively independent of time, by turning down to view the 4 different timing value, is powerful. The software system used in assembly language procedures, including the display program, counting procedures, fast speed reduction procedures, interruption, delay procedures, button buffeting extinction procedures, hardware system by using the powerf
显示全部