目 录
摘要 I
Abstract II
引言 1
第一章 概述 2
1.1 选题的背景和意义 2
1.2 脉搏测量仪的发展与应用 3
第二章 总体方案的论证与设计 5
2.1主控模块的选型和论证 5
2.2显示模块的选型和论证 5
2.3传感器的选型和论证 5
2.4系统整体设计概述 6
第三章 系统硬件电路设计 8
3.1主控模块 8
3.1.1 STC89C52单片机主要特性 8
3.1.2 STC89C52单片机的中断系统 12
3.1.3单片机最小系统设计 12
3.2显示模块电路 12
3.3信号采集电路设计 16
3.3.1传感器简介 16
3.3.2滤波电路 17
3.3.3放大整形电路 17
第四章 系统软件设计 17
4.1系统软件总体设计 17
4.2程序设计原理 19
第五章 系统调试 21
5.1软件调试 21
5.2硬件调试 21
5.3调试结果 22
5.4误差分析 22
结论 24
致谢 25
参考文献 26
附录 27
基于单片机的脉搏测量仪设计
摘要: 脉搏测量仪在我们的日常生活中已经得到了非常广泛的应用,通过观测脉搏信号,可以对人体的健康进行检查,通常被用于保健中心和医院。为了提高脉搏测量仪的简便性和精确度,本课题设计了一种基于51单片机的脉搏测量仪。系统以STC89C52单片机为核心,以光电传感器利用单片机系统内部定时器来计算时间,由光电传感器感应产生信号,单片机通过对信号累加得到脉搏跳动次数,时间由定时器定时而得。系统运行中可以通过观察指示灯闪烁,若均匀闪烁说明测量值准确。系统停止运行时,能够显示总的脉搏次数和时间。经测试,系统工作正常,达到设计要求。
本设计利用红外光电传感器产生脉冲信号,经过放大整形后,输入单片机内进行相应的控制,从而测量出一分钟内的脉搏跳动次数,快捷方便。系统可以供用户测量当时的脉搏次数,同时还可以设定上限次数和下限次数,当测量的范围超过设定的范围则驱动蜂鸣器报警提醒,除此外用户还可以设定每天闹钟提醒测量,时间可以自行设定,结果最终可以把采集到的脉搏信号显示在数码管上。
关键词:STC89C52;脉搏测量仪;LCD显示器;光电传感器
Design of pulse measuring instrument based on single chip
Abstract:Pulse measurement apparatus has been widely used in our daily life. In order to improve the measurement apparatus is simple and accuracy, this paper designs a pulse measuring instrument based on 51 single chip microcomputer. System to STC89C52 microcontroller as the core, with photoelectric sensor, and calculates the internal timer SCM system, the signal from the photoelectric sensor, microcontroller based on the accumulated pulse beat frequency signal, by the time the timer. In the running of the system can be observed through the indicator lights out, if even flicker that accurate measuring value. The system stops running, can display the total pulse number and time. After testing, the system works normally, meet the design requirements.
The design of the infrared photoelectric sensor generates a pulse signal, after plastic surgery to enlarge, the input of SCM within the corresponding control, which measured within a minute of the pulse beat frequency, fast and convenient. Through observing the pulse signal, can check the health of the body, usually used for health centres and hospitals. The system can be used for measuring the pulse number of users, but also can set the upper limit of the number of times and, when the range of the measurement range over the set of drive buzzer alarm, but users can also set the alarm clock to remind the daily measurement, time can be set, the results were finally able to pulse signal acquisition to display on the occurring.
Keywords:STC89C52; photosensor; LCD display; Pulse measuring instrument