[毕业设计论文]--基于单片机的脉搏测量仪.doc宁波理工学院 早业殺针(轲夂丿 题 目基于单片机的脉搏测量仪设计 姓 名 傅佳慧 学 号 3050121005 专业班级 05通信工程1班 指导教师 李林功 分 院 信息科学与工程分院 完成日期 2009年6月5日 摘要 脉搏测量仪在我们的日常生活中已经得到了非常广泛的应用。为了提高脉搏 测量仪的简便性和精确度,本课题设计了一种基于51单片机的脉搏测量仪。系统 以AT89C51单片机为核心,以红外发光二极管和光敏三极管为传感器,并利用单 片机系统内部定时器来计算时间,由光敏三极管感应产生脉冲,单片机通过对脉 冲累加得到脉搏跳动次数,时间由定时器定时而得。系统运行中能显示脉搏次数 和时间,系统停止运行时,能够显示总的脉搏次数和时间。经测试,系统工作正 常,达到设计要求。 关键词:脉搏测量仪;AT89C51单片机;光电传感器 Abstract Pulse measuring instrument has been widely used in our daily life. In order to increase its simplicity and accuracy, this subject designs one system based on single-chip microcomputer and infrared light emitting diode and photo transistor as sensors, and calculates time with using of the inner timer. The sensor produces pulse and the single-chip microcomputer gets the frequency by accumulating the pulses, and the timer obtains the time. The system could display the frequency and time of the pulse during operation. It can also shows the total number when it stops. After testing, the system works well and meets the design requirements. Keywords: Pulse measurement; AT89C51 single-chip microcomputer; photoelectric sensor 目 录 摘要 I Abstract II 第1章概述 1 1 2 第2章 脉搏测量仪系统结构 4 4 5 5 第3章 硬件系统 7 7 AT89C51 简介 7 的特点 7 的结构 7 9 10 10 11 11 12 12 13 14 16 17 LED 的综述 18 LED 的结构 18 LED数码管的显示方法 19 20 第4章 软件系统 21 : 21 : 21 INT中断程序流程: 22 : 23 23 第五章抗干扰措施及使用方法 24 24 24 24 25 25 第6章系统调试 26 26 27 28 第七章总结与展望 29 参考文献 31 附 录 33 致 谢 39 第1章概述