2013届本科生毕业设计
题目:800米第一名计时电路的设计
作 者 姓 名: xyh
学 号: 2009 系 (院): 机械与电子工程学院 专 业: 电气工程及其自动化 指导教师姓名: 曹老师 指导教师职称: 副教授
2013年 5月 1日
SuZhou University
Year 2013 Bachelor Graduation Design
800 Meter First Timing Circuit Design
Author:
Student ID:2009080404
Department: Electronic and Electrotonically Engineering
Major:Electrotonically Engineering and Automation Instructor:
Professional Title:Associate Professor、Engineer
May 1st, 2013
摘 要
800米计时电路的设计主要是通过软件编程,按键控制,驱动单片机控制LED数码管的显示功能。电路设计是由数码管显示、电源模块、复位模块、晶振电路、MAX232串行通行、STC89C52单片机模块、按键显示控制模块等硬件部分组成。Keil3软件C语言编程,软件STC-ISP将程序下载到单片机内,单片机实现控制数码管计时显示。数码管显示可分为分、秒、10毫秒三段计时单元,计时精确度至10毫秒,当然我们可以根据具体的要求改编程序以实现更为精确的计时要求。此设计的计时范围从10毫秒0秒0分至59分60秒990毫秒,足够满足800米计时要求的计时范围。此设计分别通过开关按键S1和S2控制计时开始和计时结束,并显示最终计时时间。
关键词:单片机; 数码管; 发光二极管
ABSTRACT
800 meter time trial circuit design through software programming, key control, driven single-chip control LED digital tube display function.The circuit was designed by the digital display, power supply module, reset module, crystal oscillator circuit, MAX232 serial STC89C52 microcontroller module, key display control module and other hardware components. C language programming of KEIL3 software, software STC-ISP program is downloaded to the MCU, the MCU to control the timing of digital tube display. The digital display can be divided into minutes and seconds, 10ms three sections timing unit, timing accuracy to 10 ms, of course, we can according to the specific requirements of the adaptation program in order to achieve a more precise timing requirements.The timing of this design is sufficient to meet the requirements of 800-meter time Timing range of 0 to 59 points from 10ms0 seconds 60 seconds 990ms.This design by the switch button S1 and S2 control timing the start and the end of the timing, and final timing time.
Keywords:MCU; digital tube; light-emitting diodes
目 录
绪论 ................................................................... 1 1. 主要器件简介 ........................................................ 2
1.1显示单元简介 ......................................................................................................... 2
1.1.1 发光二极管 ................................................................................................. 2 1.1.2 数码管 ......................................................................................................... 3 1.2 主要芯片简介 ........................................................................................................ 4
1.2.1 STC89C52RC单片机 .................................................................................. 4 1.2.2MAX232 ........................................................................................................ 7
2.硬件原理图设计 ...................................................... 10
2.1数码显示原理论述 ............................................................................................... 10 2.2 数码模块电路设计 .............................................................................................. 11
2.2.1 数码管模块设计 ....................................................................................... 11 2.3控制模块电路设计 ............................................................................................... 13
2.3.1 基于STC89C52单片机的最小系统设计 ............................................... 13
2.4 Protel99se绘图软件简介 ..................................................................................... 15 3.系统软件设计 ........................................................ 17
3.1软件设计思想 ....................................................................................................... 17 3.2 keil编程软件简介 ................................................................................................ 17 结论 .................................................................. 19 参考文献 .............................................................. 20 附录一: 控制模块原理图 ............................................... 21 附录二: 显示模块原理图
...................................................................... 22 附录三:源程序...................................................................................................................23 致谢 .................................................................. 26