沈阳工学院毕业设计报告 题 目:基于单片机人体反应速度测试仪院 系: 信息与控制学院 (黑三) 专 业: 通信工程 (黑三) 班级学号: 093041 07 (黑三) 学生姓名: 张 三 (黑三) 指导老师: (黑三) 成 绩: 2024 年 06 月 25 日摘 要本文是基于单片机人体反应速度测试描述,通过单片机测试人的反应速度。在本设计中以 AT89S52 单片机为核心的人体反应速度测试仪,主要通过控制测试灯的状态,在测试按键的状态来间接计算人体反应速度.正常情况下系统运行主程序一直处于空闲等待状态,知道测试者按下按键后,LED 测试灯立即点亮。AT89S52 单片机在 LED 测试灯亮的同时开始计算一个随机时间,在一段随机时间结束后,AT89S52 单片机 把 LED测试灯熄灭,并开始计时灯灭与测试者放开按键的时间差,此计时时间用于纪录被测试者的反应时间,并以毫秒为时间单位在 4 位数码管上显示。假如在 LED 测试灯灭之前提前放开测试按键,则显示 9999 作为出错信息。设计中采纳 AT89S52 单片机,其以高性能低价格的优势成为全球使用范围最广泛的单片机之一;显示部分采纳 LED 数码管的显示方式,本套系统在不影响其测试性能的情况下,大大的节约了设计成本,是性价比较高的一款人体反应测试议。和其他测试仪相比具有明显的价格竞争优势;同时,本设计作品的使用方法简单,只需按下按键即可完成测试,方便测试人员的测试使用。关键词:单片机;反应速度;AT89S52 ;LED; 数码管AbstractThis 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...