毕业设计_基于单片机人体反应速度测试仪

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

工学院

毕业设计报告题目:基于单片机人体反应速度测试仪

院系:信息与控制学院(黑三)

专业:通信工程(黑三)

班级学号: 093041 07 (黑三)

学生:三(黑三)

指导教师:(黑三)

成绩:

2014 年 06 月 25日

摘要

本文是基于单片机人体反应速度测试描述,通过单片机测试人的反应速度。在本设计中以AT89S52单片机为核心的人体反应速度测试仪,主要通过控制测试灯的状态,在测试按键的状态来间接计算人体反应速度。正常情况下系统运行主程序一直处于空闲等待状态,知道测试者按下按键后,LED测试灯立即点亮。AT89S52单片机在LED测试灯亮的同时开始计算一个随机时间,在一段随机时间结束后,AT89S52单片机把LED测试灯熄灭,并开始计时灯灭与测试者放开按键的时间差,此计时时间用于纪录被测试者的反应时间,并以毫秒为时间单位在4位数码管上显示。如果在LED测试灯灭之前提前放开测试按键,则显示9999作为出错信息。

设计中采用AT89S52单片机,其以高性能低价格的优势成为全球使用围最广泛的单片机之一;显示部分采用LED数码管的显示方式,本套系统在不影响其测试性能的情况下,大大的节省了设计成本,是性价比较高的一款人体反应测试议。和其他测试仪相比具有明显的价格竞争优势;同时,本设计作品的使用方法简单,只需按下按键即可完成测试,方便测试人员的测试使用。

关键词:单片机;反应速度;AT89S52 ;LED;数码管

Abstract

This article is based on single chip microcomputer human reaction speed tests described, through the single chip microcomputer test response speed. AT89S52 MCU as the core in the design of the human body reaction velocity tester, mainly by controlling the state of the test lamp, in the state of the test button to indirect calculation of human body reaction speed. System normal operation of the main program has been idle waiting state, know the tester after press the button, the LED test lamp light up immediately. AT89S52 single chip microcomputer in LED to test the lights at the same time began to calculate a random time, at the end of a random time, AT89S52 single chip microcomputer test the LED lights, and start timing lights and testers release button lag, this timer is used to record the subject's reaction time, and in milliseconds as the unit of time in the four digital tube display. If the LED test before the lights went out early release test button, 9999 as the error message is displayed.

Design USES AT89S52 single chip microcomputer, its to high performance low price advantage to become one of the world scope the most widely used microcontroller; Display part adopts LED digital tube display, this set of system in the case of does not affect the test performance, greatly save the design cost, is the high cost performance of a human reaction test. Compared with other tester has obvious price competitive advantage; At the same time, the use of this design method is simple, just press the button to complete the test, the convenience for the tester's test.

Keywords: Single chip microcomputer; Reaction Speed; AT89S52; LED; Digital tube

目录

1 硬件部分设计 (1)

1.1硬件结构设计 (2)

1.2硬件电路设计 (3)

1.2.1硬件模块选择 (3)

1.2.2硬件模块设计 (3)

1.2.3控制计算公式 (5)

2 软件部分设计 (6)

2.1开发环境 (7)

2.2主体程序设计 (7)

2.2.1主程序设计 (7)

2.2.2中断程序设计 (7)

3 系统测试 (8)

3.1软件测试 (8)

3.2硬件测试 (8)

结论 (9)

参考文献 (10)

附录 A (12)

附录 B (13)

附录 C (14)

相关文档
最新文档